aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
index a94620b..4fceef6 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
@@ -132,6 +132,8 @@ namespace OpenSim.Services.Connectors.SimianGrid
132 132
133 public string RegisterRegion(UUID scopeID, GridRegion regionInfo) 133 public string RegisterRegion(UUID scopeID, GridRegion regionInfo)
134 { 134 {
135 IPEndPoint ext = regionInfo.ExternalEndPoint;
136 if (ext == null) return "Region registration for " + regionInfo.RegionName + " failed: Could not resolve EndPoint";
135 // Generate and upload our map tile in PNG format to the SimianGrid AddMapTile service 137 // Generate and upload our map tile in PNG format to the SimianGrid AddMapTile service
136 Scene scene; 138 Scene scene;
137 if (m_scenes.TryGetValue(regionInfo.RegionID, out scene)) 139 if (m_scenes.TryGetValue(regionInfo.RegionID, out scene))
@@ -149,7 +151,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
149 { "ServerURI", OSD.FromString(regionInfo.ServerURI) }, 151 { "ServerURI", OSD.FromString(regionInfo.ServerURI) },
150 { "InternalAddress", OSD.FromString(regionInfo.InternalEndPoint.Address.ToString()) }, 152 { "InternalAddress", OSD.FromString(regionInfo.InternalEndPoint.Address.ToString()) },
151 { "InternalPort", OSD.FromInteger(regionInfo.InternalEndPoint.Port) }, 153 { "InternalPort", OSD.FromInteger(regionInfo.InternalEndPoint.Port) },
152 { "ExternalAddress", OSD.FromString(regionInfo.ExternalEndPoint.Address.ToString()) }, 154 { "ExternalAddress", OSD.FromString(ext.Address.ToString()) },
153 { "ExternalPort", OSD.FromInteger(regionInfo.ExternalEndPoint.Port) }, 155 { "ExternalPort", OSD.FromInteger(regionInfo.ExternalEndPoint.Port) },
154 { "MapTexture", OSD.FromUUID(regionInfo.TerrainImage) }, 156 { "MapTexture", OSD.FromUUID(regionInfo.TerrainImage) },
155 { "Access", OSD.FromInteger(regionInfo.Access) }, 157 { "Access", OSD.FromInteger(regionInfo.Access) },