aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices.GridServer/GridManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenGridServices.GridServer/GridManager.cs')
-rw-r--r--OpenGridServices.GridServer/GridManager.cs7
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 }