mirror of
https://github.com/opensim/opensim.git
synced 2026-07-13 19:14:51 +08:00
Remove IClientAPI.GetClientEP() in favour of existing identical IClientAPI.RemoteEndpoint.
This commit is contained in:
@@ -874,13 +874,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (World.Entities.ContainsKey((UUID)agent) && World.Entities[avatarID] is ScenePresence)
|
||||
{
|
||||
ScenePresence target = (ScenePresence)World.Entities[avatarID];
|
||||
EndPoint ep = target.ControllingClient.GetClientEP();
|
||||
if (ep is IPEndPoint)
|
||||
{
|
||||
IPEndPoint ip = (IPEndPoint)ep;
|
||||
return ip.Address.ToString();
|
||||
}
|
||||
return target.ControllingClient.RemoteEndPoint.Address.ToString();
|
||||
}
|
||||
|
||||
// fall through case, just return nothing
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user