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

Unified Diff: remoting/host/network_settings.h

Issue 10868031: Limit the ports used by IT2Me when NAT traversal is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add explanation to NetworkSettings default port defines Created 8 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
« no previous file with comments | « no previous file | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/network_settings.h
diff --git a/remoting/host/network_settings.h b/remoting/host/network_settings.h
index e3dd3fd9972057594c51b2e2daabbe6ab836775d..3c1ed97d2abc599758e7c0e32ac72d7c3857d4cd 100644
--- a/remoting/host/network_settings.h
+++ b/remoting/host/network_settings.h
@@ -8,6 +8,13 @@
namespace remoting {
struct NetworkSettings {
+
+ // When hosts are configured with NAT traversal disabled they will
+ // typically also limit their P2P ports to this range, so that
+ // sessions may be blocked or un-blocked via firewall rules.
+ static const int kDefaultMinPort = 12400;
+ static const int kDefaultMaxPort = 12409;
+
enum NatTraversalMode {
// Active NAT traversal using STUN and relay servers.
NAT_TRAVERSAL_ENABLED,
« no previous file with comments | « no previous file | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698