aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices.GridServer
diff options
context:
space:
mode:
authorAdam Frisby2007-05-18 23:46:14 +0000
committerAdam Frisby2007-05-18 23:46:14 +0000
commit02123f903612d1050194ee243ffb82c047c1edfd (patch)
treeb61ebec45f8b0c8f214439d3e2adc721abd25118 /OpenGridServices.GridServer
parentAdded session IDs to the grid management agent (diff)
downloadopensim-SC_OLD-02123f903612d1050194ee243ffb82c047c1edfd.zip
opensim-SC_OLD-02123f903612d1050194ee243ffb82c047c1edfd.tar.gz
opensim-SC_OLD-02123f903612d1050194ee243ffb82c047c1edfd.tar.bz2
opensim-SC_OLD-02123f903612d1050194ee243ffb82c047c1edfd.tar.xz
Added bool requirePublic to gridserver. Disabled by default.
Diffstat (limited to 'OpenGridServices.GridServer')
-rw-r--r--OpenGridServices.GridServer/GridManager.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenGridServices.GridServer/GridManager.cs b/OpenGridServices.GridServer/GridManager.cs
index 1fc7c31..8cf707a 100644
--- a/OpenGridServices.GridServer/GridManager.cs
+++ b/OpenGridServices.GridServer/GridManager.cs
@@ -383,7 +383,9 @@ namespace OpenGridServices.GridServer
383 383
384 TheSim.serverURI = "http://" + TheSim.serverIP + ":" + TheSim.serverPort + "/"; 384 TheSim.serverURI = "http://" + TheSim.serverIP + ":" + TheSim.serverPort + "/";
385 385
386 if (TheSim.serverIP.StartsWith("172.16") || TheSim.serverIP.StartsWith("192.168") || TheSim.serverIP.StartsWith("10.") || TheSim.serverIP.StartsWith("0.") || TheSim.serverIP.StartsWith("255.")) 386 bool requirePublic = false;
387
388 if (requirePublic && (TheSim.serverIP.StartsWith("172.16") || TheSim.serverIP.StartsWith("192.168") || TheSim.serverIP.StartsWith("10.") || TheSim.serverIP.StartsWith("0.") || TheSim.serverIP.StartsWith("255.")))
387 { 389 {
388 return "ERROR! Servers must register with public addresses."; 390 return "ERROR! Servers must register with public addresses.";
389 } 391 }