diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Communications/Services/HGLoginAuthService.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs b/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs index 1de0d4d..0637a1e 100644 --- a/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs +++ b/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs | |||
@@ -279,11 +279,17 @@ namespace OpenSim.Framework.Communications.Services | |||
279 | 279 | ||
280 | if (m_serversInfo.HttpUsesSSL) | 280 | if (m_serversInfo.HttpUsesSSL) |
281 | { | 281 | { |
282 | seedcap = "https://" + m_serversInfo.HttpSSLCN + ":" + regionInfo.HttpPort + capsSeedPath; | 282 | // For NAT |
283 | string host = NetworkUtil.GetHostFor(remoteClient.Address, m_serversInfo.HttpSSLCN); | ||
284 | |||
285 | seedcap = "https://" + host + ":" + m_serversInfo.httpSSLPort + capsSeedPath; | ||
283 | } | 286 | } |
284 | else | 287 | else |
285 | { | 288 | { |
286 | seedcap = "http://" + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort + capsSeedPath; | 289 | // For NAT |
290 | string host = NetworkUtil.GetHostFor(remoteClient.Address, regionInfo.ExternalHostName); | ||
291 | |||
292 | seedcap = "http://" + host + ":" + m_serversInfo.HttpListenerPort + capsSeedPath; | ||
287 | } | 293 | } |
288 | 294 | ||
289 | response.SeedCapability = seedcap; | 295 | response.SeedCapability = seedcap; |