diff options
Diffstat (limited to 'OpenSim/Services/GridService/HypergridLinker.cs')
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index 2af617a..2869349 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs | |||
@@ -198,7 +198,7 @@ namespace OpenSim.Services.GridService | |||
198 | 198 | ||
199 | mapName = mapName.Trim(); | 199 | mapName = mapName.Trim(); |
200 | 200 | ||
201 | if (!mapName.StartsWith("http")) | 201 | if (!mapName.StartsWith("http") && !mapName.StartsWith("https")) |
202 | { | 202 | { |
203 | // Formats: grid.example.com:8002:region name | 203 | // Formats: grid.example.com:8002:region name |
204 | // grid.example.com:region name | 204 | // grid.example.com:region name |
@@ -231,9 +231,10 @@ namespace OpenSim.Services.GridService | |||
231 | { | 231 | { |
232 | regionName = parts[2]; | 232 | regionName = parts[2]; |
233 | } | 233 | } |
234 | 234 | ||
235 | bool success = TryCreateLink(scopeID, xloc, yloc, regionName, port, host, ownerID, out regInfo, out reason); | 235 | string serverURI = "http://"+ host +":"+ port.ToString() + "/"; |
236 | if (success) | 236 | // bool success = TryCreateLink(scopeID, xloc, yloc, regionName, port, host, ownerID, out regInfo, out reason); |
237 | if(TryCreateLink(scopeID, xloc, yloc, regionName, 0, null, serverURI, ownerID, out regInfo, out reason)) | ||
237 | { | 238 | { |
238 | regInfo.RegionName = mapName; | 239 | regInfo.RegionName = mapName; |
239 | return regInfo; | 240 | return regInfo; |
@@ -257,6 +258,8 @@ namespace OpenSim.Services.GridService | |||
257 | } | 258 | } |
258 | 259 | ||
259 | serverURI = parts[0]; | 260 | serverURI = parts[0]; |
261 | if (!serverURI.EndsWith("/")) | ||
262 | serverURI = serverURI + "/"; | ||
260 | 263 | ||
261 | if (parts.Length >= 2) | 264 | if (parts.Length >= 2) |
262 | { | 265 | { |
@@ -365,7 +368,9 @@ namespace OpenSim.Services.GridService | |||
365 | UUID regionID = UUID.Zero; | 368 | UUID regionID = UUID.Zero; |
366 | string externalName = string.Empty; | 369 | string externalName = string.Empty; |
367 | string imageURL = string.Empty; | 370 | string imageURL = string.Empty; |
368 | if (!m_GatekeeperConnector.LinkRegion(regInfo, out regionID, out handle, out externalName, out imageURL, out reason)) | 371 | int sizeX = (int)Constants.RegionSize; |
372 | int sizeY = (int)Constants.RegionSize; | ||
373 | if (!m_GatekeeperConnector.LinkRegion(regInfo, out regionID, out handle, out externalName, out imageURL, out reason, out sizeX, out sizeY)) | ||
369 | return false; | 374 | return false; |
370 | 375 | ||
371 | if (regionID == UUID.Zero) | 376 | if (regionID == UUID.Zero) |
@@ -397,6 +402,8 @@ namespace OpenSim.Services.GridService | |||
397 | // } | 402 | // } |
398 | 403 | ||
399 | regInfo.RegionID = regionID; | 404 | regInfo.RegionID = regionID; |
405 | regInfo.RegionSizeX = sizeX; | ||
406 | regInfo.RegionSizeY = sizeY; | ||
400 | 407 | ||
401 | if (externalName == string.Empty) | 408 | if (externalName == string.Empty) |
402 | regInfo.RegionName = regInfo.ServerURI; | 409 | regInfo.RegionName = regInfo.ServerURI; |