Remove IClientAPI.GetClientEP() in favour of existing identical IClientAPI.RemoteEndpoint.

This commit is contained in:
Justin Clark-Casey (justincc)
2012-07-12 23:29:57 +01:00
parent 75ab9b4b88
commit 3b3d9967b1
6 changed files with 2 additions and 27 deletions

View File

@@ -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 "";
}