diff options
Diffstat (limited to 'OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs')
-rw-r--r-- | OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs index 291dd73..cabee4c 100644 --- a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs +++ b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs | |||
@@ -88,7 +88,12 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
88 | paramList.Add(hash); | 88 | paramList.Add(hash); |
89 | 89 | ||
90 | XmlRpcRequest request = new XmlRpcRequest("link_region", paramList); | 90 | XmlRpcRequest request = new XmlRpcRequest("link_region", paramList); |
91 | string uri = "http://" + info.ExternalEndPoint.Address + ":" + info.HttpPort + "/"; | 91 | IPEndPoint ext = info.ExternalEndPoint; |
92 | string uri = ""; | ||
93 | if (ext != null) | ||
94 | { | ||
95 | uri = "http://" + ext.Address + ":" + info.HttpPort + "/"; | ||
96 | } | ||
92 | //m_log.Debug("[GATEKEEPER SERVICE CONNECTOR]: Linking to " + uri); | 97 | //m_log.Debug("[GATEKEEPER SERVICE CONNECTOR]: Linking to " + uri); |
93 | XmlRpcResponse response = null; | 98 | XmlRpcResponse response = null; |
94 | try | 99 | try |
@@ -190,7 +195,12 @@ namespace OpenSim.Services.Connectors.Hypergrid | |||
190 | paramList.Add(hash); | 195 | paramList.Add(hash); |
191 | 196 | ||
192 | XmlRpcRequest request = new XmlRpcRequest("get_region", paramList); | 197 | XmlRpcRequest request = new XmlRpcRequest("get_region", paramList); |
193 | string uri = "http://" + gatekeeper.ExternalEndPoint.Address + ":" + gatekeeper.HttpPort + "/"; | 198 | IPEndPoint ext = gatekeeper.ExternalEndPoint; |
199 | string uri = ""; | ||
200 | if (ext != null) | ||
201 | { | ||
202 | uri = "http://" + ext.Address + ":" + gatekeeper.HttpPort + "/"; | ||
203 | } | ||
194 | m_log.Debug("[GATEKEEPER SERVICE CONNECTOR]: contacting " + uri); | 204 | m_log.Debug("[GATEKEEPER SERVICE CONNECTOR]: contacting " + uri); |
195 | XmlRpcResponse response = null; | 205 | XmlRpcResponse response = null; |
196 | try | 206 | try |