Added bool requirePublic to gridserver. Disabled by default.

zircon^2
Adam Frisby 2007-05-18 23:46:14 +00:00
parent 867671cfcc
commit 02123f9036
1 changed files with 3 additions and 1 deletions

View File

@ -383,7 +383,9 @@ namespace OpenGridServices.GridServer
TheSim.serverURI = "http://" + TheSim.serverIP + ":" + TheSim.serverPort + "/"; TheSim.serverURI = "http://" + TheSim.serverIP + ":" + TheSim.serverPort + "/";
if (TheSim.serverIP.StartsWith("172.16") || TheSim.serverIP.StartsWith("192.168") || TheSim.serverIP.StartsWith("10.") || TheSim.serverIP.StartsWith("0.") || TheSim.serverIP.StartsWith("255.")) bool requirePublic = false;
if (requirePublic && (TheSim.serverIP.StartsWith("172.16") || TheSim.serverIP.StartsWith("192.168") || TheSim.serverIP.StartsWith("10.") || TheSim.serverIP.StartsWith("0.") || TheSim.serverIP.StartsWith("255.")))
{ {
return "ERROR! Servers must register with public addresses."; return "ERROR! Servers must register with public addresses.";
} }