diff options
author | UbitUmarov | 2017-06-27 01:41:06 +0100 |
---|---|---|
committer | UbitUmarov | 2017-06-27 01:41:06 +0100 |
commit | 936aee412d67edc0e143ab13213c5ee1cb1c2a0e (patch) | |
tree | bef08b6af3c9b78ccbfa626b6da19b3cddd8a523 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | dont list deleted ones, that still don't know they are gone (diff) | |
download | opensim-SC-936aee412d67edc0e143ab13213c5ee1cb1c2a0e.zip opensim-SC-936aee412d67edc0e143ab13213c5ee1cb1c2a0e.tar.gz opensim-SC-936aee412d67edc0e143ab13213c5ee1cb1c2a0e.tar.bz2 opensim-SC-936aee412d67edc0e143ab13213c5ee1cb1c2a0e.tar.xz |
remove osGetAgentIP() this was not a good idea to have :(
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index f41f011..a1fd7cd 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -1080,31 +1080,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1080 | targetID, | 1080 | targetID, |
1081 | part.SitTargetPosition); | 1081 | part.SitTargetPosition); |
1082 | } | 1082 | } |
1083 | 1083 | ||
1084 | // Functions that get information from the agent itself. | ||
1085 | // | ||
1086 | // osGetAgentIP - this is used to determine the IP address of | ||
1087 | //the client. This is needed to help configure other in world | ||
1088 | //resources based on the IP address of the clients connected. | ||
1089 | //I think High is a good risk level for this, as it is an | ||
1090 | //information leak. | ||
1091 | public string osGetAgentIP(string agent) | ||
1092 | { | ||
1093 | CheckThreatLevel(ThreatLevel.High, "osGetAgentIP"); | ||
1094 | |||
1095 | UUID avatarID = (UUID)agent; | ||
1096 | |||
1097 | m_host.AddScriptLPS(1); | ||
1098 | if (World.Entities.ContainsKey((UUID)agent) && World.Entities[avatarID] is ScenePresence) | ||
1099 | { | ||
1100 | ScenePresence target = (ScenePresence)World.Entities[avatarID]; | ||
1101 | return target.ControllingClient.RemoteEndPoint.Address.ToString(); | ||
1102 | } | ||
1103 | |||
1104 | // fall through case, just return nothing | ||
1105 | return ""; | ||
1106 | } | ||
1107 | |||
1108 | // Get a list of all the avatars/agents in the region | 1084 | // Get a list of all the avatars/agents in the region |
1109 | public LSL_List osGetAgents() | 1085 | public LSL_List osGetAgents() |
1110 | { | 1086 | { |