aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionInfo.cs
diff options
context:
space:
mode:
authorJeff Ames2007-12-06 01:41:41 +0000
committerJeff Ames2007-12-06 01:41:41 +0000
commit4bde56457f574060c1aaaca8effba1f6fe00b6c7 (patch)
tree60c081be8f3d00da63940efd81ce88de6fe1f2a5 /OpenSim/Framework/RegionInfo.cs
parentSome refactoring of the RestObjectPoster (and related classes). (diff)
downloadopensim-SC-4bde56457f574060c1aaaca8effba1f6fe00b6c7.zip
opensim-SC-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.gz
opensim-SC-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.bz2
opensim-SC-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.xz
removed some duplicate hard-coded port numbers. changed ports to uint.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/RegionInfo.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index dd4078b..d94a890 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -56,15 +56,14 @@ namespace OpenSim.Framework
56 m_externalHostName = externalUri; 56 m_externalHostName = externalUri;
57 } 57 }
58 58
59 public SimpleRegionInfo(uint regionLocX, uint regionLocY, string externalUri, int port) 59 public SimpleRegionInfo(uint regionLocX, uint regionLocY, string externalUri, uint port)
60 { 60 {
61
62 m_regionLocX = regionLocX; 61 m_regionLocX = regionLocX;
63 m_regionLocY = regionLocY; 62 m_regionLocY = regionLocY;
64 63
65 m_externalHostName = externalUri; 64 m_externalHostName = externalUri;
66 65
67 m_internalEndPoint = new IPEndPoint(IPAddress.Parse("0.0.0.0"), port); 66 m_internalEndPoint = new IPEndPoint(IPAddress.Parse("0.0.0.0"), (int) port);
68 } 67 }
69 68
70 public LLUUID RegionID = LLUUID.Zero; 69 public LLUUID RegionID = LLUUID.Zero;
@@ -270,7 +269,7 @@ namespace OpenSim.Framework
270 { 269 {
271 errorMessage = "needs an IP Address (IPAddress)"; 270 errorMessage = "needs an IP Address (IPAddress)";
272 } 271 }
273 this.m_internalEndPoint.Port = source.Configs[sectionName].GetInt("internal_ip_port", NetworkServersInfo.DefaultHttpListenerPort); 272 this.m_internalEndPoint.Port = source.Configs[sectionName].GetInt("internal_ip_port", (int) NetworkServersInfo.DefaultHttpListenerPort);
274 273
275 string externalHost = source.Configs[sectionName].GetString("external_host_name", "127.0.0.1"); 274 string externalHost = source.Configs[sectionName].GetString("external_host_name", "127.0.0.1");
276 if (externalHost != "SYSTEMIP") 275 if (externalHost != "SYSTEMIP")