diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Monitoring/StatsManager.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Framework/Monitoring/StatsManager.cs b/OpenSim/Framework/Monitoring/StatsManager.cs index 3136ee8..a167b55 100644 --- a/OpenSim/Framework/Monitoring/StatsManager.cs +++ b/OpenSim/Framework/Monitoring/StatsManager.cs | |||
@@ -283,7 +283,7 @@ namespace OpenSim.Framework.Monitoring | |||
283 | if (!(String.IsNullOrEmpty(pStatName) || pStatName == AllSubCommand || pStatName == statName)) | 283 | if (!(String.IsNullOrEmpty(pStatName) || pStatName == AllSubCommand || pStatName == statName)) |
284 | continue; | 284 | continue; |
285 | 285 | ||
286 | statMap.Add(statName, theStats[statName].ToOSDMap()); | 286 | statMap.Add(statName, theStats[statName].ToBriefOSDMap()); |
287 | } | 287 | } |
288 | 288 | ||
289 | contMap.Add(contName, statMap); | 289 | contMap.Add(contName, statMap); |
@@ -305,6 +305,17 @@ namespace OpenSim.Framework.Monitoring | |||
305 | string pContainerName = StatsManager.AllSubCommand; | 305 | string pContainerName = StatsManager.AllSubCommand; |
306 | string pStatName = StatsManager.AllSubCommand; | 306 | string pStatName = StatsManager.AllSubCommand; |
307 | 307 | ||
308 | if (!request.ContainsKey("pass") || request["pass"].ToString() != "l0st4nge1s") | ||
309 | { | ||
310 | responsedata["int_response_code"] = response_code; | ||
311 | responsedata["content_type"] = "text/plain"; | ||
312 | responsedata["keepalive"] = false; | ||
313 | responsedata["str_response_string"] = "Access denied"; | ||
314 | responsedata["access_control_allow_origin"] = "*"; | ||
315 | |||
316 | return responsedata; | ||
317 | } | ||
318 | |||
308 | if (request.ContainsKey("cat")) pCategoryName = request["cat"].ToString(); | 319 | if (request.ContainsKey("cat")) pCategoryName = request["cat"].ToString(); |
309 | if (request.ContainsKey("cont")) pContainerName = request["cat"].ToString(); | 320 | if (request.ContainsKey("cont")) pContainerName = request["cat"].ToString(); |
310 | if (request.ContainsKey("stat")) pStatName = request["stat"].ToString(); | 321 | if (request.ContainsKey("stat")) pStatName = request["stat"].ToString(); |
@@ -554,4 +565,4 @@ namespace OpenSim.Framework.Monitoring | |||
554 | Debug, | 565 | Debug, |
555 | Info | 566 | Info |
556 | } | 567 | } |
557 | } \ No newline at end of file | 568 | } |