aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/GridManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/GridServer/GridManager.cs')
-rw-r--r--OpenSim/Grid/GridServer/GridManager.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs
index 6af0767..1e21d9e 100644
--- a/OpenSim/Grid/GridServer/GridManager.cs
+++ b/OpenSim/Grid/GridServer/GridManager.cs
@@ -262,10 +262,10 @@ namespace OpenSim.Grid.GridServer
262 262
263 TheSim = new RegionProfileData(); 263 TheSim = new RegionProfileData();
264 264
265 TheSim.regionRecvKey = config.SimRecvKey; 265 TheSim.regionRecvKey = String.Empty;
266 TheSim.regionSendKey = config.SimSendKey; 266 TheSim.regionSendKey = String.Empty;
267 TheSim.regionSecret = config.SimRecvKey; 267 TheSim.regionSecret = config.SimRecvKey;
268 TheSim.regionDataURI = ""; 268 TheSim.regionDataURI = String.Empty;
269 TheSim.regionAssetURI = config.DefaultAssetServer; 269 TheSim.regionAssetURI = config.DefaultAssetServer;
270 TheSim.regionAssetRecvKey = config.AssetRecvKey; 270 TheSim.regionAssetRecvKey = config.AssetRecvKey;
271 TheSim.regionAssetSendKey = config.AssetSendKey; 271 TheSim.regionAssetSendKey = config.AssetSendKey;
@@ -289,7 +289,6 @@ namespace OpenSim.Grid.GridServer
289 } 289 }
290 catch (KeyNotFoundException) { } 290 catch (KeyNotFoundException) { }
291 291
292
293 TheSim.regionHandle = Helpers.UIntsToLong((TheSim.regionLocX * 256), (TheSim.regionLocY * 256)); 292 TheSim.regionHandle = Helpers.UIntsToLong((TheSim.regionLocX * 256), (TheSim.regionLocY * 256));
294 TheSim.serverURI = "http://" + TheSim.serverIP + ":" + TheSim.serverPort + "/"; 293 TheSim.serverURI = "http://" + TheSim.serverIP + ":" + TheSim.serverPort + "/";
295 294
@@ -303,7 +302,9 @@ namespace OpenSim.Grid.GridServer
303 OldSim = getRegion(TheSim.regionHandle); 302 OldSim = getRegion(TheSim.regionHandle);
304 if (OldSim == null || OldSim.UUID == TheSim.UUID) 303 if (OldSim == null || OldSim.UUID == TheSim.UUID)
305 { 304 {
306 if (OldSim == null || (OldSim.regionRecvKey == TheSim.regionRecvKey && 305 if ((OldSim == null && TheSim.regionRecvKey == config.SimSendKey &&
306 TheSim.regionRecvKey == config.SimRecvKey) ||
307 (OldSim.regionRecvKey == TheSim.regionRecvKey &&
307 OldSim.regionSendKey == TheSim.regionSendKey)) 308 OldSim.regionSendKey == TheSim.regionSendKey))
308 { 309 {
309 MainLog.Instance.Verbose("GRID", "Adding region " + TheSim.regionLocX + " , " + TheSim.regionLocY + " , " + 310 MainLog.Instance.Verbose("GRID", "Adding region " + TheSim.regionLocX + " , " + TheSim.regionLocY + " , " +