diff options
author | Adam Frisby | 2007-05-16 21:10:45 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-16 21:10:45 +0000 |
commit | dc2acaa8a887e986644480237910308701c84c1a (patch) | |
tree | d5f292670f2295877cbece26ca43444dba82f03b /OpenGridServices.GridServer/GridManager.cs | |
parent | * sing loud, sing proud, sing from the heart (diff) | |
download | opensim-SC-dc2acaa8a887e986644480237910308701c84c1a.zip opensim-SC-dc2acaa8a887e986644480237910308701c84c1a.tar.gz opensim-SC-dc2acaa8a887e986644480237910308701c84c1a.tar.bz2 opensim-SC-dc2acaa8a887e986644480237910308701c84c1a.tar.xz |
Let stuff be broken!
Diffstat (limited to '')
-rw-r--r-- | OpenGridServices.GridServer/GridManager.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenGridServices.GridServer/GridManager.cs b/OpenGridServices.GridServer/GridManager.cs index db864da..1fc7c31 100644 --- a/OpenGridServices.GridServer/GridManager.cs +++ b/OpenGridServices.GridServer/GridManager.cs | |||
@@ -383,6 +383,11 @@ 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.")) | ||
387 | { | ||
388 | return "ERROR! Servers must register with public addresses."; | ||
389 | } | ||
390 | |||
386 | try | 391 | try |
387 | { | 392 | { |
388 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Attempting to add a new region to the grid - " + _plugins.Count + " storage provider(s) registered."); | 393 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Attempting to add a new region to the grid - " + _plugins.Count + " storage provider(s) registered."); |
@@ -402,7 +407,7 @@ namespace OpenGridServices.GridServer | |||
402 | } | 407 | } |
403 | catch (Exception e) | 408 | catch (Exception e) |
404 | { | 409 | { |
405 | return "ERROR! could not save to database! (" + e.ToString() + ")"; | 410 | return "ERROR! Could not save to database! (" + e.ToString() + ")"; |
406 | } | 411 | } |
407 | 412 | ||
408 | } | 413 | } |