diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Interfaces/ILoginService.cs | 2 | ||||
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Services/Interfaces/ILoginService.cs b/OpenSim/Services/Interfaces/ILoginService.cs index 513ab4a..9e57339 100644 --- a/OpenSim/Services/Interfaces/ILoginService.cs +++ b/OpenSim/Services/Interfaces/ILoginService.cs | |||
@@ -47,7 +47,7 @@ namespace OpenSim.Services.Interfaces | |||
47 | 47 | ||
48 | public interface ILoginService | 48 | public interface ILoginService |
49 | { | 49 | { |
50 | LoginResponse Login(string firstName, string lastName, string passwd, string startLocation, UUID scopeID, IPEndPoint clientIP); | 50 | LoginResponse Login(string firstName, string lastName, string passwd, string startLocation, UUID scopeID, string clientVersion, IPEndPoint clientIP); |
51 | Hashtable SetLevel(string firstName, string lastName, string passwd, int level, IPEndPoint clientIP); | 51 | Hashtable SetLevel(string firstName, string lastName, string passwd, int level, IPEndPoint clientIP); |
52 | } | 52 | } |
53 | 53 | ||
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 95127d2..be90d38 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -200,7 +200,7 @@ namespace OpenSim.Services.LLLoginService | |||
200 | return response; | 200 | return response; |
201 | } | 201 | } |
202 | 202 | ||
203 | public LoginResponse Login(string firstName, string lastName, string passwd, string startLocation, UUID scopeID, IPEndPoint clientIP) | 203 | public LoginResponse Login(string firstName, string lastName, string passwd, string startLocation, UUID scopeID, string clientVersion, IPEndPoint clientIP) |
204 | { | 204 | { |
205 | bool success = false; | 205 | bool success = false; |
206 | UUID session = UUID.Random(); | 206 | UUID session = UUID.Random(); |
@@ -320,7 +320,7 @@ namespace OpenSim.Services.LLLoginService | |||
320 | // Instantiate/get the simulation interface and launch an agent at the destination | 320 | // Instantiate/get the simulation interface and launch an agent at the destination |
321 | // | 321 | // |
322 | string reason = string.Empty; | 322 | string reason = string.Empty; |
323 | AgentCircuitData aCircuit = LaunchAgentAtGrid(gatekeeper, destination, account, avatar, session, secureSession, position, where, out where, out reason); | 323 | AgentCircuitData aCircuit = LaunchAgentAtGrid(gatekeeper, destination, account, avatar, session, secureSession, position, where, clientVersion, out where, out reason); |
324 | 324 | ||
325 | if (aCircuit == null) | 325 | if (aCircuit == null) |
326 | { | 326 | { |
@@ -586,7 +586,7 @@ namespace OpenSim.Services.LLLoginService | |||
586 | } | 586 | } |
587 | 587 | ||
588 | protected AgentCircuitData LaunchAgentAtGrid(GridRegion gatekeeper, GridRegion destination, UserAccount account, AvatarData avatar, | 588 | protected AgentCircuitData LaunchAgentAtGrid(GridRegion gatekeeper, GridRegion destination, UserAccount account, AvatarData avatar, |
589 | UUID session, UUID secureSession, Vector3 position, string currentWhere, out string where, out string reason) | 589 | UUID session, UUID secureSession, Vector3 position, string currentWhere, string viewer, out string where, out string reason) |
590 | { | 590 | { |
591 | where = currentWhere; | 591 | where = currentWhere; |
592 | ISimulationService simConnector = null; | 592 | ISimulationService simConnector = null; |
@@ -626,7 +626,7 @@ namespace OpenSim.Services.LLLoginService | |||
626 | if (m_UserAgentService == null && simConnector != null) | 626 | if (m_UserAgentService == null && simConnector != null) |
627 | { | 627 | { |
628 | circuitCode = (uint)Util.RandomClass.Next(); ; | 628 | circuitCode = (uint)Util.RandomClass.Next(); ; |
629 | aCircuit = MakeAgent(destination, account, avatar, session, secureSession, circuitCode, position); | 629 | aCircuit = MakeAgent(destination, account, avatar, session, secureSession, circuitCode, position, viewer); |
630 | success = LaunchAgentDirectly(simConnector, destination, aCircuit, out reason); | 630 | success = LaunchAgentDirectly(simConnector, destination, aCircuit, out reason); |
631 | if (!success && m_GridService != null) | 631 | if (!success && m_GridService != null) |
632 | { | 632 | { |
@@ -651,7 +651,7 @@ namespace OpenSim.Services.LLLoginService | |||
651 | if (m_UserAgentService != null) | 651 | if (m_UserAgentService != null) |
652 | { | 652 | { |
653 | circuitCode = (uint)Util.RandomClass.Next(); ; | 653 | circuitCode = (uint)Util.RandomClass.Next(); ; |
654 | aCircuit = MakeAgent(destination, account, avatar, session, secureSession, circuitCode, position); | 654 | aCircuit = MakeAgent(destination, account, avatar, session, secureSession, circuitCode, position, viewer); |
655 | success = LaunchAgentIndirectly(gatekeeper, destination, aCircuit, out reason); | 655 | success = LaunchAgentIndirectly(gatekeeper, destination, aCircuit, out reason); |
656 | if (!success && m_GridService != null) | 656 | if (!success && m_GridService != null) |
657 | { | 657 | { |
@@ -680,7 +680,7 @@ namespace OpenSim.Services.LLLoginService | |||
680 | } | 680 | } |
681 | 681 | ||
682 | private AgentCircuitData MakeAgent(GridRegion region, UserAccount account, | 682 | private AgentCircuitData MakeAgent(GridRegion region, UserAccount account, |
683 | AvatarData avatar, UUID session, UUID secureSession, uint circuit, Vector3 position) | 683 | AvatarData avatar, UUID session, UUID secureSession, uint circuit, Vector3 position, string viewer) |
684 | { | 684 | { |
685 | AgentCircuitData aCircuit = new AgentCircuitData(); | 685 | AgentCircuitData aCircuit = new AgentCircuitData(); |
686 | 686 | ||
@@ -701,6 +701,7 @@ namespace OpenSim.Services.LLLoginService | |||
701 | aCircuit.SecureSessionID = secureSession; | 701 | aCircuit.SecureSessionID = secureSession; |
702 | aCircuit.SessionID = session; | 702 | aCircuit.SessionID = session; |
703 | aCircuit.startpos = position; | 703 | aCircuit.startpos = position; |
704 | aCircuit.Viewer = viewer; | ||
704 | SetServiceURLs(aCircuit, account); | 705 | SetServiceURLs(aCircuit, account); |
705 | 706 | ||
706 | return aCircuit; | 707 | return aCircuit; |