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

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: Move default min & max port definitions to NetworkSettings. 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..a8b167935b52f8f4b4aebc13f1c85054c60c9ae0 100644
--- a/remoting/host/network_settings.h
+++ b/remoting/host/network_settings.h
@@ -8,6 +8,10 @@
namespace remoting {
struct NetworkSettings {
+
+ static const int kDefaultMinPort = 12400;
Sergey Ulanov 2012/08/24 18:47:27 Please add comments to explain how these constants
Wez 2012/08/24 19:51:25 Done.
+ 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