diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/UserServer.Modules/UserLoginService.cs | 19 |
1 files changed, 13 insertions, 6 deletions
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 | |||
270 | 270 | ||
271 | string capsPath = CapsUtil.GetRandomCapsObjectPath(); | 271 | string capsPath = CapsUtil.GetRandomCapsObjectPath(); |
272 | 272 | ||
273 | // For NAT | 273 | // Adam's working code commented for now -- Diva 5/25/2009 |
274 | //string host = NetworkUtil.GetHostFor(remoteClient.Address, regionInfo.ServerIP); | 274 | //// For NAT |
275 | string host = response.SimAddress; | 275 | ////string host = NetworkUtil.GetHostFor(remoteClient.Address, regionInfo.ServerIP); |
276 | // TODO: This doesnt support SSL. -Adam | 276 | //string host = response.SimAddress; |
277 | string serverURI = "http://" + host + ":" + regionInfo.ServerPort; | 277 | //// TODO: This doesnt support SSL. -Adam |
278 | //string serverURI = "http://" + host + ":" + regionInfo.ServerPort; | ||
279 | |||
280 | //response.SeedCapability = serverURI + CapsUtil.GetCapsSeedPath(capsPath); | ||
281 | |||
282 | // Take off trailing / so that the caps path isn't //CAPS/someUUID | ||
283 | if (regionInfo.httpServerURI.EndsWith("/")) | ||
284 | regionInfo.httpServerURI = regionInfo.httpServerURI.Substring(0, regionInfo.httpServerURI.Length - 1); | ||
285 | response.SeedCapability = regionInfo.httpServerURI + CapsUtil.GetCapsSeedPath(capsPath); | ||
278 | 286 | ||
279 | response.SeedCapability = serverURI + CapsUtil.GetCapsSeedPath(capsPath); | ||
280 | 287 | ||
281 | // Notify the target of an incoming user | 288 | // Notify the target of an incoming user |
282 | m_log.InfoFormat( | 289 | m_log.InfoFormat( |