Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: webrtc/p2p/client/basicportallocator.cc

Issue 1284113003: Move the concept of multiple route into Network (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« webrtc/base/network.h ('K') | « webrtc/base/network.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/client/basicportallocator.cc
diff --git a/webrtc/p2p/client/basicportallocator.cc b/webrtc/p2p/client/basicportallocator.cc
index 3f5aa0a1ff396cbb512d65166d46c54c598b70b9..f3ff6e7dde1123b8735f9d105291036477d264ad 100644
--- a/webrtc/p2p/client/basicportallocator.cc
+++ b/webrtc/p2p/client/basicportallocator.cc
@@ -307,6 +307,10 @@ void BasicPortAllocatorSession::DoAllocate() {
// instead of specific NIC. This is to ensure the same routing for http
// traffic by OS is also used here to avoid any local or public IP leakage
// during stun process.
+ if (allocator_->network_manager()->adapter_enumeration_disabled()) {
juberti1 2015/08/13 20:45:58 It seems odd to set a flag based on some other con
guoweis_webrtc 2015/08/13 20:54:14 There are other places in the code which depends o
juberti1 2015/08/13 22:10:11 I see. In that case this seems like the best appro
+ set_flags(flags() | PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION);
+ }
+
if (flags() & PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION) {
allocator_->network_manager()->GetAnyAddressNetworks(&networks);
} else {
« webrtc/base/network.h ('K') | « webrtc/base/network.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698