aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index ba461f0..bcf98a1 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -41,7 +41,6 @@ using OpenMetaverse;
41using OpenSim; 41using OpenSim;
42using OpenSim.Framework; 42using OpenSim.Framework;
43using OpenSim.Framework.Communications; 43using OpenSim.Framework.Communications;
44
45using OpenSim.Framework.Console; 44using OpenSim.Framework.Console;
46using OpenSim.Framework.Servers; 45using OpenSim.Framework.Servers;
47using OpenSim.Framework.Servers.HttpServer; 46using OpenSim.Framework.Servers.HttpServer;
@@ -67,7 +66,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
67 private IConfig m_config; 66 private IConfig m_config;
68 private IConfigSource m_configSource; 67 private IConfigSource m_configSource;
69 private string m_requiredPassword = String.Empty; 68 private string m_requiredPassword = String.Empty;
70 private List<string> m_accessIP; 69 private HashSet<string> m_accessIP;
71 70
72 private string m_name = "RemoteAdminPlugin"; 71 private string m_name = "RemoteAdminPlugin";
73 private string m_version = "0.0"; 72 private string m_version = "0.0";
@@ -106,7 +105,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
106 int port = m_config.GetInt("port", 0); 105 int port = m_config.GetInt("port", 0);
107 106
108 string accessIP = m_config.GetString("access_ip_addresses", String.Empty); 107 string accessIP = m_config.GetString("access_ip_addresses", String.Empty);
109 m_accessIP = new List<string>(); 108 m_accessIP = new HashSet<string>();
110 if (accessIP != String.Empty) 109 if (accessIP != String.Empty)
111 { 110 {
112 string[] ips = accessIP.Split(new char[] { ',' }); 111 string[] ips = accessIP.Split(new char[] { ',' });
@@ -288,6 +287,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
288 restartModule.ScheduleRestart(UUID.Zero, message, times.ToArray(), notice); 287 restartModule.ScheduleRestart(UUID.Zero, message, times.ToArray(), notice);
289 responseData["success"] = true; 288 responseData["success"] = true;
290 } 289 }
290
291 response.Value = responseData; 291 response.Value = responseData;
292 } 292 }
293 catch (Exception e) 293 catch (Exception e)
@@ -960,7 +960,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
960 public XmlRpcResponse XmlRpcDeleteRegionMethod(XmlRpcRequest request, IPEndPoint remoteClient) 960 public XmlRpcResponse XmlRpcDeleteRegionMethod(XmlRpcRequest request, IPEndPoint remoteClient)
961 { 961 {
962 m_log.Info("[RADMIN]: DeleteRegion: new request"); 962 m_log.Info("[RADMIN]: DeleteRegion: new request");
963 963
964 XmlRpcResponse response = new XmlRpcResponse(); 964 XmlRpcResponse response = new XmlRpcResponse();
965 Hashtable responseData = new Hashtable(); 965 Hashtable responseData = new Hashtable();
966 966
@@ -3305,4 +3305,4 @@ namespace OpenSim.ApplicationPlugins.RemoteController
3305 } 3305 }
3306 } 3306 }
3307 } 3307 }
3308} \ No newline at end of file 3308}