aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/NetworkServersInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/NetworkServersInfo.cs59
1 files changed, 13 insertions, 46 deletions
diff --git a/OpenSim/Framework/NetworkServersInfo.cs b/OpenSim/Framework/NetworkServersInfo.cs
index f720222..4b7d4c7 100644
--- a/OpenSim/Framework/NetworkServersInfo.cs
+++ b/OpenSim/Framework/NetworkServersInfo.cs
@@ -32,26 +32,18 @@ namespace OpenSim.Framework
32{ 32{
33 public class NetworkServersInfo 33 public class NetworkServersInfo
34 { 34 {
35 public string AssetSendKey = String.Empty;
36 public string AssetURL = "http://127.0.0.1:" + ConfigSettings.DefaultAssetServerHttpPort.ToString() + "/";
37
38 public string GridRecvKey = String.Empty;
39 public string GridSendKey = String.Empty;
40 public string GridURL = String.Empty;
41 public uint HttpListenerPort = ConfigSettings.DefaultRegionHttpPort; 35 public uint HttpListenerPort = ConfigSettings.DefaultRegionHttpPort;
42 public string InventoryURL = String.Empty;
43 public bool secureInventoryServer = false; 36 public bool secureInventoryServer = false;
44 public bool isSandbox; 37 public bool isSandbox;
45 private uint? m_defaultHomeLocX;
46 private uint? m_defaultHomeLocY;
47 public string UserRecvKey = String.Empty;
48 public string UserSendKey = String.Empty;
49 public string UserURL = String.Empty;
50 public bool HttpUsesSSL = false; 38 public bool HttpUsesSSL = false;
51 public string HttpSSLCN = ""; 39 public string HttpSSLCN = "";
52 public uint httpSSLPort = 9001; 40 public uint httpSSLPort = 9001;
53 41
54 public string MessagingURL = String.Empty; 42 // "Out of band" managemnt https
43 public bool ssl_listener = false;
44 public uint https_port = 0;
45 public string cert_path = String.Empty;
46 public string cert_pass = String.Empty;
55 47
56 public NetworkServersInfo() 48 public NetworkServersInfo()
57 { 49 {
@@ -59,50 +51,25 @@ namespace OpenSim.Framework
59 51
60 public NetworkServersInfo(uint defaultHomeLocX, uint defaultHomeLocY) 52 public NetworkServersInfo(uint defaultHomeLocX, uint defaultHomeLocY)
61 { 53 {
62 m_defaultHomeLocX = defaultHomeLocX;
63 m_defaultHomeLocY = defaultHomeLocY;
64 }
65
66 public uint DefaultHomeLocX
67 {
68 get { return m_defaultHomeLocX.Value; }
69 }
70
71 public uint DefaultHomeLocY
72 {
73 get { return m_defaultHomeLocY.Value; }
74 } 54 }
75 55
76 public void loadFromConfiguration(IConfigSource config) 56 public void loadFromConfiguration(IConfigSource config)
77 { 57 {
78 m_defaultHomeLocX = (uint) config.Configs["StandAlone"].GetInt("default_location_x", 1000);
79 m_defaultHomeLocY = (uint) config.Configs["StandAlone"].GetInt("default_location_y", 1000);
80
81 HttpListenerPort = 58 HttpListenerPort =
82 (uint) config.Configs["Network"].GetInt("http_listener_port", (int) ConfigSettings.DefaultRegionHttpPort); 59 (uint) config.Configs["Network"].GetInt("http_listener_port", (int) ConfigSettings.DefaultRegionHttpPort);
83 httpSSLPort = 60 httpSSLPort =
84 (uint)config.Configs["Network"].GetInt("http_listener_sslport", ((int)ConfigSettings.DefaultRegionHttpPort+1)); 61 (uint)config.Configs["Network"].GetInt("http_listener_sslport", ((int)ConfigSettings.DefaultRegionHttpPort+1));
85 HttpUsesSSL = config.Configs["Network"].GetBoolean("http_listener_ssl", false); 62 HttpUsesSSL = config.Configs["Network"].GetBoolean("http_listener_ssl", false);
86 HttpSSLCN = config.Configs["Network"].GetString("http_listener_cn", "localhost"); 63 HttpSSLCN = config.Configs["Network"].GetString("http_listener_cn", "localhost");
87 ConfigSettings.DefaultRegionRemotingPort =
88 (uint) config.Configs["Network"].GetInt("remoting_listener_port", (int) ConfigSettings.DefaultRegionRemotingPort);
89 GridURL =
90 config.Configs["Network"].GetString("grid_server_url",
91 "http://127.0.0.1:" + ConfigSettings.DefaultGridServerHttpPort.ToString());
92 GridSendKey = config.Configs["Network"].GetString("grid_send_key", "null");
93 GridRecvKey = config.Configs["Network"].GetString("grid_recv_key", "null");
94 UserURL =
95 config.Configs["Network"].GetString("user_server_url",
96 "http://127.0.0.1:" + ConfigSettings.DefaultUserServerHttpPort.ToString());
97 UserSendKey = config.Configs["Network"].GetString("user_send_key", "null");
98 UserRecvKey = config.Configs["Network"].GetString("user_recv_key", "null");
99 AssetURL = config.Configs["Network"].GetString("asset_server_url", AssetURL);
100 InventoryURL = config.Configs["Network"].GetString("inventory_server_url",
101 "http://127.0.0.1:" +
102 ConfigSettings.DefaultInventoryServerHttpPort.ToString());
103 secureInventoryServer = config.Configs["Network"].GetBoolean("secure_inventory_server", true);
104 64
105 MessagingURL = config.Configs["Network"].GetString("messaging_server_url", string.Empty); 65 // "Out of band management https"
66 ssl_listener = config.Configs["Network"].GetBoolean("https_listener",false);
67 if( ssl_listener)
68 {
69 cert_path = config.Configs["Network"].GetString("cert_path",String.Empty);
70 cert_pass = config.Configs["Network"].GetString("cert_pass",String.Empty);
71 https_port = (uint)config.Configs["Network"].GetInt("https_port", 0);
72 }
106 } 73 }
107 } 74 }
108} 75}