aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Client
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Client')
-rw-r--r--OpenSim/Client/Linden/LLStandaloneLoginService.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Client/Linden/LLStandaloneLoginService.cs b/OpenSim/Client/Linden/LLStandaloneLoginService.cs
index 73cc7a3..ea3a74a 100644
--- a/OpenSim/Client/Linden/LLStandaloneLoginService.cs
+++ b/OpenSim/Client/Linden/LLStandaloneLoginService.cs
@@ -163,11 +163,17 @@ namespace OpenSim.Client.Linden
163 163
164 if (m_serversInfo.HttpUsesSSL) 164 if (m_serversInfo.HttpUsesSSL)
165 { 165 {
166 seedcap = "https://" + m_serversInfo.HttpSSLCN + ":" + m_serversInfo.httpSSLPort + capsSeedPath; 166 // For NAT
167 string host = NetworkUtil.GetHostFor(remoteClient.Address, m_serversInfo.HttpSSLCN);
168
169 seedcap = "https://" + host + ":" + m_serversInfo.httpSSLPort + capsSeedPath;
167 } 170 }
168 else 171 else
169 { 172 {
170 seedcap = "http://" + regionInfo.ExternalHostName + ":" + m_serversInfo.HttpListenerPort + capsSeedPath; 173 // For NAT
174 string host = NetworkUtil.GetHostFor(remoteClient.Address, regionInfo.ExternalHostName);
175
176 seedcap = "http://" + host + ":" + m_serversInfo.HttpListenerPort + capsSeedPath;
171 } 177 }
172 178
173 response.SeedCapability = seedcap; 179 response.SeedCapability = seedcap;