diff options
Diffstat (limited to 'OpenSim/Services/LLLoginService')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 29 | ||||
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 7 |
2 files changed, 4 insertions, 32 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index 0da1715..f985ab2 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -333,34 +333,7 @@ namespace OpenSim.Services.LLLoginService | |||
333 | 333 | ||
334 | private void FillOutSeedCap(AgentCircuitData aCircuit, GridRegion destination, IPEndPoint ipepClient) | 334 | private void FillOutSeedCap(AgentCircuitData aCircuit, GridRegion destination, IPEndPoint ipepClient) |
335 | { | 335 | { |
336 | string capsSeedPath = String.Empty; | 336 | SeedCapability = destination.ServerURI + CapsUtil.GetCapsSeedPath(aCircuit.CapsPath); |
337 | |||
338 | // Don't use the following! It Fails for logging into any region not on the same port as the http server! | ||
339 | // Kept here so it doesn't happen again! | ||
340 | // response.SeedCapability = regionInfo.ServerURI + capsSeedPath; | ||
341 | |||
342 | #region IP Translation for NAT | ||
343 | if (ipepClient != null) | ||
344 | { | ||
345 | capsSeedPath | ||
346 | = "http://" | ||
347 | + NetworkUtil.GetHostFor(ipepClient.Address, destination.ExternalHostName) | ||
348 | + ":" | ||
349 | + destination.HttpPort | ||
350 | + CapsUtil.GetCapsSeedPath(aCircuit.CapsPath); | ||
351 | } | ||
352 | else | ||
353 | { | ||
354 | capsSeedPath | ||
355 | = "http://" | ||
356 | + destination.ExternalHostName | ||
357 | + ":" | ||
358 | + destination.HttpPort | ||
359 | + CapsUtil.GetCapsSeedPath(aCircuit.CapsPath); | ||
360 | } | ||
361 | #endregion | ||
362 | |||
363 | SeedCapability = capsSeedPath; | ||
364 | } | 337 | } |
365 | 338 | ||
366 | private void SetDefaultValues() | 339 | private void SetDefaultValues() |
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index fcfdd1d..e2d1f04 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -586,6 +586,7 @@ namespace OpenSim.Services.LLLoginService | |||
586 | 586 | ||
587 | private GridRegion FindForeignRegion(string domainName, uint port, string regionName, out GridRegion gatekeeper) | 587 | private GridRegion FindForeignRegion(string domainName, uint port, string regionName, out GridRegion gatekeeper) |
588 | { | 588 | { |
589 | m_log.Debug("attempting to findforeignregion " + domainName + ":" + port.ToString() + ":" + regionName); | ||
589 | gatekeeper = new GridRegion(); | 590 | gatekeeper = new GridRegion(); |
590 | gatekeeper.ExternalHostName = domainName; | 591 | gatekeeper.ExternalHostName = domainName; |
591 | gatekeeper.HttpPort = port; | 592 | gatekeeper.HttpPort = port; |
@@ -651,11 +652,9 @@ namespace OpenSim.Services.LLLoginService | |||
651 | gatekeeper = new GridRegion(destination); | 652 | gatekeeper = new GridRegion(destination); |
652 | gatekeeper.ExternalHostName = hostName; | 653 | gatekeeper.ExternalHostName = hostName; |
653 | gatekeeper.HttpPort = (uint)port; | 654 | gatekeeper.HttpPort = (uint)port; |
654 | 655 | gatekeeper.ServerURI = m_GatekeeperURL; | |
655 | } | ||
656 | else // login to foreign grid | ||
657 | { | ||
658 | } | 656 | } |
657 | m_log.Debug("no gatekeeper detected..... using " + m_GatekeeperURL); | ||
659 | } | 658 | } |
660 | 659 | ||
661 | bool success = false; | 660 | bool success = false; |