diff options
Diffstat (limited to 'OpenSim/Grid/UserServer/UserLoginService.cs')
-rw-r--r-- | OpenSim/Grid/UserServer/UserLoginService.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs index 0b832f4..e03ac3a 100644 --- a/OpenSim/Grid/UserServer/UserLoginService.cs +++ b/OpenSim/Grid/UserServer/UserLoginService.cs | |||
@@ -99,8 +99,8 @@ namespace OpenSim.Grid.UserServer | |||
99 | //CFK: the next one for X & Y and comment this one. | 99 | //CFK: the next one for X & Y and comment this one. |
100 | //CFK: m_log.Info("[LOGIN]: CUSTOMISERESPONSE: Region X: " + SimInfo.regionLocX + | 100 | //CFK: m_log.Info("[LOGIN]: CUSTOMISERESPONSE: Region X: " + SimInfo.regionLocX + |
101 | //CFK: "; Region Y: " + SimInfo.regionLocY); | 101 | //CFK: "; Region Y: " + SimInfo.regionLocY); |
102 | response.SimAddress = Util.GetHostFromDNS(SimInfo.serverIP).ToString(); | 102 | response.SimAddress = Util.GetHostFromDNS(SimInfo.serverURI.Split(new char[] { '/', ':' })[3]).ToString(); |
103 | response.SimPort = (uint) SimInfo.serverPort; | 103 | response.SimPort = uint.Parse(SimInfo.serverURI.Split(new char[] { '/', ':' })[4]); |
104 | response.RegionX = SimInfo.regionLocX; | 104 | response.RegionX = SimInfo.regionLocX; |
105 | response.RegionY = SimInfo.regionLocY; | 105 | response.RegionY = SimInfo.regionLocY; |
106 | 106 | ||
@@ -190,8 +190,8 @@ namespace OpenSim.Grid.UserServer | |||
190 | m_log.Info("[LOGIN]: " + | 190 | m_log.Info("[LOGIN]: " + |
191 | "CUSTOMISERESPONSE: Region X: " + SimInfo.regionLocX + "; Region Y: " + | 191 | "CUSTOMISERESPONSE: Region X: " + SimInfo.regionLocX + "; Region Y: " + |
192 | SimInfo.regionLocY); | 192 | SimInfo.regionLocY); |
193 | response.SimAddress = Util.GetHostFromDNS(SimInfo.serverIP).ToString(); | 193 | response.SimAddress = Util.GetHostFromDNS(SimInfo.serverURI.Split(new char[] { '/', ':' })[3]).ToString(); |
194 | response.SimPort = (uint) SimInfo.serverPort; | 194 | response.SimPort = uint.Parse(SimInfo.serverURI.Split(new char[] { '/', ':' })[4]); |
195 | response.RegionX = SimInfo.regionLocX; | 195 | response.RegionX = SimInfo.regionLocX; |
196 | response.RegionY = SimInfo.regionLocY; | 196 | response.RegionY = SimInfo.regionLocY; |
197 | 197 | ||