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