From 05314c3252ec4eea20c91c41d82e3eb06c0a91db Mon Sep 17 00:00:00 2001 From: deadbeef Date: Mon, 10 Jul 2017 19:52:28 -0700 Subject: [PATCH] Make "set_ignore_non_default_routes" actually use its argument. It takes a bool argument, but unconditionally sets the flag to "true". Since no comment is left to offer an explanation, I'm assuming this was an accident. BUG=webrtc:7716 TBR=pthatcher@webrtc.org Review-Url: https://codereview.webrtc.org/2974873002 Cr-Commit-Position: refs/heads/master@{#18959} --- webrtc/rtc_base/network.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webrtc/rtc_base/network.h b/webrtc/rtc_base/network.h index 6f820bb4de..4cbbfefd42 100644 --- a/webrtc/rtc_base/network.h +++ b/webrtc/rtc_base/network.h @@ -230,8 +230,9 @@ class BasicNetworkManager : public NetworkManagerBase, #if defined(WEBRTC_LINUX) // Sets the flag for ignoring non-default routes. + // Defaults to false. void set_ignore_non_default_routes(bool value) { - ignore_non_default_routes_ = true; + ignore_non_default_routes_ = value; } #endif