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

Unified Diff: trunk/src/remoting/jingle_glue/chromium_port_allocator.cc

Issue 268483003: Revert 267234 "New policies: enable/disable relay; port range" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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
« no previous file with comments | « trunk/src/remoting/host/remoting_me2me_host.cc ('k') | trunk/src/remoting/jingle_glue/network_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/remoting/jingle_glue/chromium_port_allocator.cc
===================================================================
--- trunk/src/remoting/jingle_glue/chromium_port_allocator.cc (revision 267240)
+++ trunk/src/remoting/jingle_glue/chromium_port_allocator.cc (working copy)
@@ -147,13 +147,11 @@
int flags = cricket::PORTALLOCATOR_DISABLE_TCP |
cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG |
cricket::PORTALLOCATOR_ENABLE_IPV6;
-
- if (!(network_settings.flags & NetworkSettings::NAT_TRAVERSAL_STUN))
- flags |= cricket::PORTALLOCATOR_DISABLE_STUN;
-
- if (!(network_settings.flags & NetworkSettings::NAT_TRAVERSAL_RELAY))
- flags |= cricket::PORTALLOCATOR_DISABLE_RELAY;
-
+ if (network_settings.nat_traversal_mode !=
+ NetworkSettings::NAT_TRAVERSAL_ENABLED) {
+ flags |= cricket::PORTALLOCATOR_DISABLE_STUN |
+ cricket::PORTALLOCATOR_DISABLE_RELAY;
+ }
result->set_flags(flags);
result->SetPortRange(network_settings.min_port,
network_settings.max_port);
« no previous file with comments | « trunk/src/remoting/host/remoting_me2me_host.cc ('k') | trunk/src/remoting/jingle_glue/network_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698