From 49804f67dc270d8b73104253f200c488fa389a17 Mon Sep 17 00:00:00 2001 From: diva Date: Tue, 26 May 2009 02:24:38 +0000 Subject: Restoring the initial CAP Url to exactly what it used to be before Adam's changes. Adam's code is still there, but commented, until we figure out what's going on. --- OpenSim/Grid/UserServer.Modules/UserLoginService.cs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Grid/UserServer.Modules/UserLoginService.cs b/OpenSim/Grid/UserServer.Modules/UserLoginService.cs index e7f556e..c5701ef 100644 --- a/OpenSim/Grid/UserServer.Modules/UserLoginService.cs +++ b/OpenSim/Grid/UserServer.Modules/UserLoginService.cs @@ -270,13 +270,20 @@ namespace OpenSim.Grid.UserServer.Modules string capsPath = CapsUtil.GetRandomCapsObjectPath(); - // For NAT - //string host = NetworkUtil.GetHostFor(remoteClient.Address, regionInfo.ServerIP); - string host = response.SimAddress; - // TODO: This doesnt support SSL. -Adam - string serverURI = "http://" + host + ":" + regionInfo.ServerPort; + // Adam's working code commented for now -- Diva 5/25/2009 + //// For NAT + ////string host = NetworkUtil.GetHostFor(remoteClient.Address, regionInfo.ServerIP); + //string host = response.SimAddress; + //// TODO: This doesnt support SSL. -Adam + //string serverURI = "http://" + host + ":" + regionInfo.ServerPort; + + //response.SeedCapability = serverURI + CapsUtil.GetCapsSeedPath(capsPath); + + // Take off trailing / so that the caps path isn't //CAPS/someUUID + if (regionInfo.httpServerURI.EndsWith("/")) + regionInfo.httpServerURI = regionInfo.httpServerURI.Substring(0, regionInfo.httpServerURI.Length - 1); + response.SeedCapability = regionInfo.httpServerURI + CapsUtil.GetCapsSeedPath(capsPath); - response.SeedCapability = serverURI + CapsUtil.GetCapsSeedPath(capsPath); // Notify the target of an incoming user m_log.InfoFormat( -- cgit v1.1