removed some duplicate hard-coded port numbers. changed ports to uint.

This commit is contained in:
Jeff Ames
2007-12-06 01:41:41 +00:00
parent d2736437d4
commit 4bde56457f
19 changed files with 43 additions and 47 deletions

View File

@@ -345,15 +345,15 @@ namespace OpenSim.Framework.Console
return address;
}
public int CmdPromptIPPort(string prompt, string defaultvalue)
public uint CmdPromptIPPort(string prompt, string defaultvalue)
{
int port;
uint port;
string portStr;
while (true)
{
portStr = MainLog.Instance.CmdPrompt(prompt, defaultvalue);
if (int.TryParse(portStr, out port))
if (uint.TryParse(portStr, out port))
{
if (port >= IPEndPoint.MinPort && port <= IPEndPoint.MaxPort)
{