diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/General/Types/NetworkServersInfo.cs | 16 | ||||
-rw-r--r-- | OpenSim/Framework/General/Types/RegionInfo.cs | 5 |
2 files changed, 11 insertions, 10 deletions
diff --git a/OpenSim/Framework/General/Types/NetworkServersInfo.cs b/OpenSim/Framework/General/Types/NetworkServersInfo.cs index b65488a..9e4bdb1 100644 --- a/OpenSim/Framework/General/Types/NetworkServersInfo.cs +++ b/OpenSim/Framework/General/Types/NetworkServersInfo.cs | |||
@@ -35,7 +35,7 @@ namespace OpenSim.Framework.Types | |||
35 | { | 35 | { |
36 | public class NetworkServersInfo | 36 | public class NetworkServersInfo |
37 | { | 37 | { |
38 | public string AssetURL = "http://127.0.0.1:8003/"; | 38 | public string AssetURL = "http://127.0.0.1:" + AssetConfig.DefaultHttpPort.ToString() + "/"; |
39 | public string AssetSendKey = ""; | 39 | public string AssetSendKey = ""; |
40 | 40 | ||
41 | public string GridURL = ""; | 41 | public string GridURL = ""; |
@@ -46,7 +46,9 @@ namespace OpenSim.Framework.Types | |||
46 | public string UserRecvKey = ""; | 46 | public string UserRecvKey = ""; |
47 | public bool isSandbox; | 47 | public bool isSandbox; |
48 | 48 | ||
49 | public int HttpListenerPort = 9000; | 49 | public static int DefaultHttpListenerPort = 9000; |
50 | public int HttpListenerPort = DefaultHttpListenerPort; | ||
51 | |||
50 | public int RemotingListenerPort = 8895; | 52 | public int RemotingListenerPort = 8895; |
51 | 53 | ||
52 | 54 | ||
@@ -77,15 +79,15 @@ namespace OpenSim.Framework.Types | |||
77 | m_defaultHomeLocX = (uint)config.Configs["StandAlone"].GetInt("default_location_x", 1000); | 79 | m_defaultHomeLocX = (uint)config.Configs["StandAlone"].GetInt("default_location_x", 1000); |
78 | m_defaultHomeLocY = (uint)config.Configs["StandAlone"].GetInt("default_location_y", 1000); | 80 | m_defaultHomeLocY = (uint)config.Configs["StandAlone"].GetInt("default_location_y", 1000); |
79 | 81 | ||
80 | HttpListenerPort = config.Configs["Network"].GetInt("http_listener_port", 9000); | 82 | HttpListenerPort = config.Configs["Network"].GetInt("http_listener_port", DefaultHttpListenerPort); |
81 | RemotingListenerPort = config.Configs["Network"].GetInt("remoting_listener_port", 8895); | 83 | RemotingListenerPort = config.Configs["Network"].GetInt("remoting_listener_port", RemotingListenerPort); |
82 | GridURL = config.Configs["Network"].GetString("grid_server_url", "http://127.0.0.1:8001"); | 84 | GridURL = config.Configs["Network"].GetString("grid_server_url", "http://127.0.0.1:" + GridConfig.DefaultHttpPort.ToString()); |
83 | GridSendKey = config.Configs["Network"].GetString("grid_send_key", "null"); | 85 | GridSendKey = config.Configs["Network"].GetString("grid_send_key", "null"); |
84 | GridRecvKey = config.Configs["Network"].GetString("grid_recv_key", "null"); | 86 | GridRecvKey = config.Configs["Network"].GetString("grid_recv_key", "null"); |
85 | UserURL = config.Configs["Network"].GetString("user_server_url", "http://127.0.0.1:8002"); | 87 | UserURL = config.Configs["Network"].GetString("user_server_url", "http://127.0.0.1:" + UserConfig.DefaultHttpPort.ToString()); |
86 | UserSendKey = config.Configs["Network"].GetString("user_send_key", "null"); | 88 | UserSendKey = config.Configs["Network"].GetString("user_send_key", "null"); |
87 | UserRecvKey = config.Configs["Network"].GetString("user_recv_key", "null"); | 89 | UserRecvKey = config.Configs["Network"].GetString("user_recv_key", "null"); |
88 | AssetURL = config.Configs["Network"].GetString("asset_server_url", "http://127.0.0.1:8003"); | 90 | AssetURL = config.Configs["Network"].GetString("asset_server_url", AssetURL); |
89 | 91 | ||
90 | } | 92 | } |
91 | } | 93 | } |
diff --git a/OpenSim/Framework/General/Types/RegionInfo.cs b/OpenSim/Framework/General/Types/RegionInfo.cs index c1e040d..5054510 100644 --- a/OpenSim/Framework/General/Types/RegionInfo.cs +++ b/OpenSim/Framework/General/Types/RegionInfo.cs | |||
@@ -196,7 +196,7 @@ namespace OpenSim.Framework.Types | |||
196 | { | 196 | { |
197 | errorMessage = "needs an IP Address (IPAddress)"; | 197 | errorMessage = "needs an IP Address (IPAddress)"; |
198 | } | 198 | } |
199 | this.m_internalEndPoint.Port = source.Configs[sectionName].GetInt("internal_ip_port", (int)9000); | 199 | this.m_internalEndPoint.Port = source.Configs[sectionName].GetInt("internal_ip_port", NetworkServersInfo.DefaultHttpListenerPort); |
200 | 200 | ||
201 | string externalHost = source.Configs[sectionName].GetString("external_host_name", "127.0.0.1"); | 201 | string externalHost = source.Configs[sectionName].GetString("external_host_name", "127.0.0.1"); |
202 | if (externalHost != "SYSTEMIP") | 202 | if (externalHost != "SYSTEMIP") |
@@ -226,12 +226,11 @@ namespace OpenSim.Framework.Types | |||
226 | configMember.addConfigurationOption("sim_location_y", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "Grid Location (Y Axis)", "1000", false); | 226 | configMember.addConfigurationOption("sim_location_y", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "Grid Location (Y Axis)", "1000", false); |
227 | configMember.addConfigurationOption("datastore", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Filename for local storage", "OpenSim.db", false); | 227 | configMember.addConfigurationOption("datastore", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Filename for local storage", "OpenSim.db", false); |
228 | configMember.addConfigurationOption("internal_ip_address", ConfigurationOption.ConfigurationTypes.TYPE_IP_ADDRESS, "Internal IP Address for incoming UDP client connections", "0.0.0.0", false); | 228 | configMember.addConfigurationOption("internal_ip_address", ConfigurationOption.ConfigurationTypes.TYPE_IP_ADDRESS, "Internal IP Address for incoming UDP client connections", "0.0.0.0", false); |
229 | configMember.addConfigurationOption("internal_ip_port", ConfigurationOption.ConfigurationTypes.TYPE_INT32, "Internal IP Port for incoming UDP client connections", "9000", false); | 229 | configMember.addConfigurationOption("internal_ip_port", ConfigurationOption.ConfigurationTypes.TYPE_INT32, "Internal IP Port for incoming UDP client connections", NetworkServersInfo.DefaultHttpListenerPort.ToString(), false); |
230 | configMember.addConfigurationOption("external_host_name", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "External Host Name", "127.0.0.1", false); | 230 | configMember.addConfigurationOption("external_host_name", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "External Host Name", "127.0.0.1", false); |
231 | configMember.addConfigurationOption("master_avatar_first", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "First Name of Master Avatar", "Test", false); | 231 | configMember.addConfigurationOption("master_avatar_first", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "First Name of Master Avatar", "Test", false); |
232 | configMember.addConfigurationOption("master_avatar_last", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Last Name of Master Avatar", "User", false); | 232 | configMember.addConfigurationOption("master_avatar_last", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Last Name of Master Avatar", "User", false); |
233 | configMember.addConfigurationOption("master_avatar_pass", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "(Sandbox Mode Only)Password for Master Avatar account", "test", false); | 233 | configMember.addConfigurationOption("master_avatar_pass", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "(Sandbox Mode Only)Password for Master Avatar account", "test", false); |
234 | |||
235 | } | 234 | } |
236 | 235 | ||
237 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) | 236 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) |