aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/UserManagerBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications/UserManagerBase.cs')
-rw-r--r--OpenSim/Framework/Communications/UserManagerBase.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs
index ef900ea..fd02382 100644
--- a/OpenSim/Framework/Communications/UserManagerBase.cs
+++ b/OpenSim/Framework/Communications/UserManagerBase.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Net;
31using System.Reflection; 32using System.Reflection;
32using System.Security.Cryptography; 33using System.Security.Cryptography;
33using libsecondlife; 34using libsecondlife;
@@ -362,6 +363,13 @@ namespace OpenSim.Framework.Communications
362 // User connection 363 // User connection
363 agent.AgentOnline = true; 364 agent.AgentOnline = true;
364 365
366 if (request.Params.Count > 1)
367 {
368 IPEndPoint RemoteIPEndPoint = (IPEndPoint)request.Params[1];
369 agent.AgentIP = RemoteIPEndPoint.Address.ToString();
370 agent.AgentPort = (uint)RemoteIPEndPoint.Port;
371 }
372
365 // Generate sessions 373 // Generate sessions
366 RNGCryptoServiceProvider rand = new RNGCryptoServiceProvider(); 374 RNGCryptoServiceProvider rand = new RNGCryptoServiceProvider();
367 byte[] randDataS = new byte[16]; 375 byte[] randDataS = new byte[16];