Remove redundunt -ip handling in TShock.
TAPI already handles -ip
This commit is contained in:
parent
4c4cd4027d
commit
4473632691
1 changed files with 0 additions and 13 deletions
|
|
@ -320,19 +320,6 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
for (int i = 0; i < parms.Length; i++)
|
for (int i = 0; i < parms.Length; i++)
|
||||||
{
|
{
|
||||||
if (parms[i].ToLower() == "-ip")
|
|
||||||
{
|
|
||||||
IPAddress ip;
|
|
||||||
if (IPAddress.TryParse(parms[++i], out ip))
|
|
||||||
{
|
|
||||||
Netplay.serverListenIP = ip;
|
|
||||||
Console.Write("Using IP: {0}", ip);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Console.WriteLine("Bad IP: {0}", parms[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (parms[i].ToLower() == "-configpath")
|
if (parms[i].ToLower() == "-configpath")
|
||||||
{
|
{
|
||||||
var path = parms[++i];
|
var path = parms[++i];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue