aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console
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/Console
parentSome refactoring of the RestObjectPoster (and related classes). (diff)
downloadopensim-SC_OLD-4bde56457f574060c1aaaca8effba1f6fe00b6c7.zip
opensim-SC_OLD-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.gz
opensim-SC_OLD-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.bz2
opensim-SC_OLD-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.xz
removed some duplicate hard-coded port numbers. changed ports to uint.
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r--OpenSim/Framework/Console/LogBase.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs
index 99c0128..c226fcb 100644
--- a/OpenSim/Framework/Console/LogBase.cs
+++ b/OpenSim/Framework/Console/LogBase.cs
@@ -345,15 +345,15 @@ namespace OpenSim.Framework.Console
345 return address; 345 return address;
346 } 346 }
347 347
348 public int CmdPromptIPPort(string prompt, string defaultvalue) 348 public uint CmdPromptIPPort(string prompt, string defaultvalue)
349 { 349 {
350 int port; 350 uint port;
351 string portStr; 351 string portStr;
352 352
353 while (true) 353 while (true)
354 { 354 {
355 portStr = MainLog.Instance.CmdPrompt(prompt, defaultvalue); 355 portStr = MainLog.Instance.CmdPrompt(prompt, defaultvalue);
356 if (int.TryParse(portStr, out port)) 356 if (uint.TryParse(portStr, out port))
357 { 357 {
358 if (port >= IPEndPoint.MinPort && port <= IPEndPoint.MaxPort) 358 if (port >= IPEndPoint.MinPort && port <= IPEndPoint.MaxPort)
359 { 359 {