diff options
author | lbsa71 | 2007-10-15 08:42:15 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-15 08:42:15 +0000 |
commit | 9de589bc37c4c6d0cb230bb02a3edd8217d1f9ae (patch) | |
tree | fbc6bf234f5f2c4d2ef8d5eb55b6b02a2c947238 /OpenSim/Framework/General/Configuration/GridConfig.cs | |
parent | * Added #474 Chillken Windows Installer generating script - haven't tried it,... (diff) | |
download | opensim-SC-9de589bc37c4c6d0cb230bb02a3edd8217d1f9ae.zip opensim-SC-9de589bc37c4c6d0cb230bb02a3edd8217d1f9ae.tar.gz opensim-SC-9de589bc37c4c6d0cb230bb02a3edd8217d1f9ae.tar.bz2 opensim-SC-9de589bc37c4c6d0cb230bb02a3edd8217d1f9ae.tar.xz |
* Applied Chillken patch #419: consolidate_ports-r2096-3.patch - consolidated port number defaults. Thankx Chillken!
Diffstat (limited to 'OpenSim/Framework/General/Configuration/GridConfig.cs')
-rw-r--r-- | OpenSim/Framework/General/Configuration/GridConfig.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Framework/General/Configuration/GridConfig.cs b/OpenSim/Framework/General/Configuration/GridConfig.cs index 2910c5c..9020404 100644 --- a/OpenSim/Framework/General/Configuration/GridConfig.cs +++ b/OpenSim/Framework/General/Configuration/GridConfig.cs | |||
@@ -48,7 +48,8 @@ namespace OpenSim.Framework.Configuration | |||
48 | 48 | ||
49 | public string DatabaseProvider = ""; | 49 | public string DatabaseProvider = ""; |
50 | 50 | ||
51 | public uint HttpPort = 8001; | 51 | public static uint DefaultHttpPort = 8001; |
52 | public uint HttpPort = DefaultHttpPort; | ||
52 | 53 | ||
53 | private ConfigurationMember configMember; | 54 | private ConfigurationMember configMember; |
54 | public GridConfig(string description, string filename) | 55 | public GridConfig(string description, string filename) |
@@ -60,11 +61,11 @@ namespace OpenSim.Framework.Configuration | |||
60 | public void loadConfigurationOptions() | 61 | public void loadConfigurationOptions() |
61 | { | 62 | { |
62 | configMember.addConfigurationOption("grid_owner", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "OGS Grid Owner", "OGS development team", false); | 63 | configMember.addConfigurationOption("grid_owner", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "OGS Grid Owner", "OGS development team", false); |
63 | configMember.addConfigurationOption("default_asset_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Asset Server URI", "http://127.0.0.1:8003/", false); | 64 | configMember.addConfigurationOption("default_asset_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Asset Server URI", "http://127.0.0.1:" + AssetConfig.DefaultHttpPort.ToString() + "/", false); |
64 | configMember.addConfigurationOption("asset_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to asset server", "null", false); | 65 | configMember.addConfigurationOption("asset_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to asset server", "null", false); |
65 | configMember.addConfigurationOption("asset_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from asset server", "null", false); | 66 | configMember.addConfigurationOption("asset_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from asset server", "null", false); |
66 | 67 | ||
67 | configMember.addConfigurationOption("default_user_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default User Server URI", "http://127.0.0.1:8002/", false); | 68 | configMember.addConfigurationOption("default_user_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default User Server URI", "http://127.0.0.1:" + UserConfig.DefaultHttpPort.ToString() + "/", false); |
68 | configMember.addConfigurationOption("user_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to user server", "null", false); | 69 | configMember.addConfigurationOption("user_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to user server", "null", false); |
69 | configMember.addConfigurationOption("user_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from user server", "null", false); | 70 | configMember.addConfigurationOption("user_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from user server", "null", false); |
70 | 71 | ||
@@ -72,7 +73,7 @@ namespace OpenSim.Framework.Configuration | |||
72 | configMember.addConfigurationOption("sim_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from a simulator", "null", false); | 73 | configMember.addConfigurationOption("sim_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from a simulator", "null", false); |
73 | configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); | 74 | configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false); |
74 | 75 | ||
75 | configMember.addConfigurationOption("http_port", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "Http Listener port", "8001" , false); | 76 | configMember.addConfigurationOption("http_port", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, "Http Listener port", DefaultHttpPort.ToString(), false); |
76 | } | 77 | } |
77 | 78 | ||
78 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) | 79 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) |
@@ -109,7 +110,6 @@ namespace OpenSim.Framework.Configuration | |||
109 | case "database_provider": | 110 | case "database_provider": |
110 | this.DatabaseProvider = (string)configuration_result; | 111 | this.DatabaseProvider = (string)configuration_result; |
111 | break; | 112 | break; |
112 | |||
113 | case "http_port": | 113 | case "http_port": |
114 | HttpPort = (uint)configuration_result; | 114 | HttpPort = (uint)configuration_result; |
115 | break; | 115 | break; |