aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
authorAdam Frisby2009-05-23 06:29:08 +0000
committerAdam Frisby2009-05-23 06:29:08 +0000
commit6b312d934085caf1add5e6081f55c9944ab01aa9 (patch)
treeffe59622f1e810479a79b8865355b3a0ce909997 /OpenSim/Framework/Communications
parent* Pipes IPEndPoint through all Login methods, including LLSD/OSD login paths. (diff)
downloadopensim-SC-6b312d934085caf1add5e6081f55c9944ab01aa9.zip
opensim-SC-6b312d934085caf1add5e6081f55c9944ab01aa9.tar.gz
opensim-SC-6b312d934085caf1add5e6081f55c9944ab01aa9.tar.bz2
opensim-SC-6b312d934085caf1add5e6081f55c9944ab01aa9.tar.xz
* Implements automatic loopback handling for standalone regions.
* This /should/ make OpenSim behave properly when hosting behind a NAT router and utilizing port forwarding (but the router doesn't support Loopback)
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/Services/HGLoginAuthService.cs10
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;