From f49ba0cbfeee5a9e3c48358551ab5ce9e2ac1bf5 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 1 Oct 2008 04:16:41 +0000 Subject: * Fixed a mangled Seed caps handler definition on login to region in standalone where port wasn't the http port. * Removed spurious warning message * More debug in EventQueueGet Module to figure out why we're loosing the handlers. --- .../Communications/Local/LocalLoginService.cs | 23 +++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Communications') 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 response.RegionY = regionInfo.RegionLocY; string capsPath = Util.GetRandomCapsPath(); - response.SeedCapability = regionInfo.ServerURI + "/CAPS/" + capsPath + "0000/"; + + // Don't use the following! It Fails for logging into any region not on the same port as the http server! + // Kept here so it doesn't happen again! + // response.SeedCapability = regionInfo.ServerURI + "/CAPS/" + capsPath + "0000/"; + + string seedcap = "http://"; + + + if (serversInfo.HttpUsesSSL) + { + seedcap = "https://" + serversInfo.HttpSSLCN + ":" + serversInfo.httpSSLPort + "/CAPS/" + capsPath + "0000/"; + + } + else + { + seedcap = "http://" + regionInfo.ExternalEndPoint.Address.ToString() + ":" + serversInfo.HttpListenerPort + "/CAPS/" + capsPath + "0000/"; + } + + + + + response.SeedCapability = seedcap; //regionInfo.ExternalEndPoint.Address.ToString() + ":" + regionInfo.HttpPort + "/CAPS/" + capsPath + "0000/"; // Notify the target of an incoming user m_log.InfoFormat( -- cgit v1.1