aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs26
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 {