diff options
author | Adam Frisby | 2007-05-18 23:46:14 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-18 23:46:14 +0000 |
commit | 02123f903612d1050194ee243ffb82c047c1edfd (patch) | |
tree | b61ebec45f8b0c8f214439d3e2adc721abd25118 | |
parent | Added session IDs to the grid management agent (diff) | |
download | opensim-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.
-rw-r--r-- | OpenGridServices.GridServer/GridManager.cs | 4 |
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 | } |