diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index cfa08c2..3654106 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -874,13 +874,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
874 | if (World.Entities.ContainsKey((UUID)agent) && World.Entities[avatarID] is ScenePresence) | 874 | if (World.Entities.ContainsKey((UUID)agent) && World.Entities[avatarID] is ScenePresence) |
875 | { | 875 | { |
876 | ScenePresence target = (ScenePresence)World.Entities[avatarID]; | 876 | ScenePresence target = (ScenePresence)World.Entities[avatarID]; |
877 | EndPoint ep = target.ControllingClient.GetClientEP(); | 877 | return target.ControllingClient.RemoteEndPoint.Address.ToString(); |
878 | if (ep is IPEndPoint) | ||
879 | { | ||
880 | IPEndPoint ip = (IPEndPoint)ep; | ||
881 | return ip.Address.ToString(); | ||
882 | } | ||
883 | } | 878 | } |
879 | |||
884 | // fall through case, just return nothing | 880 | // fall through case, just return nothing |
885 | return ""; | 881 | return ""; |
886 | } | 882 | } |