diff options
Diffstat (limited to 'OpenSim/Region/Communications')
-rw-r--r-- | OpenSim/Region/Communications/Local/LocalLoginService.cs | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index 2d5c92e..70be635 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs | |||
@@ -300,7 +300,28 @@ namespace OpenSim.Region.Communications.Local | |||
300 | response.RegionY = regionInfo.RegionLocY; | 300 | response.RegionY = regionInfo.RegionLocY; |
301 | 301 | ||
302 | string capsPath = Util.GetRandomCapsPath(); | 302 | string capsPath = Util.GetRandomCapsPath(); |
303 | response.SeedCapability = regionInfo.ServerURI + "/CAPS/" + capsPath + "0000/"; | 303 | |
304 | // Don't use the following! It Fails for logging into any region not on the same port as the http server! | ||
305 | // Kept here so it doesn't happen again! | ||
306 | // response.SeedCapability = regionInfo.ServerURI + "/CAPS/" + capsPath + "0000/"; | ||
307 | |||
308 | string seedcap = "http://"; | ||
309 | |||
310 | |||
311 | if (serversInfo.HttpUsesSSL) | ||
312 | { | ||
313 | seedcap = "https://" + serversInfo.HttpSSLCN + ":" + serversInfo.httpSSLPort + "/CAPS/" + capsPath + "0000/"; | ||
314 | |||
315 | } | ||
316 | else | ||
317 | { | ||
318 | seedcap = "http://" + regionInfo.ExternalEndPoint.Address.ToString() + ":" + serversInfo.HttpListenerPort + "/CAPS/" + capsPath + "0000/"; | ||
319 | } | ||
320 | |||
321 | |||
322 | |||
323 | |||
324 | response.SeedCapability = seedcap; //regionInfo.ExternalEndPoint.Address.ToString() + ":" + regionInfo.HttpPort + "/CAPS/" + capsPath + "0000/"; | ||
304 | 325 | ||
305 | // Notify the target of an incoming user | 326 | // Notify the target of an incoming user |
306 | m_log.InfoFormat( | 327 | m_log.InfoFormat( |