Revert "Added DNS resolution for hostnames (no-ip and the like)."
This reverts commit b32e11a49f.
This commit is contained in:
parent
6d65fda5b7
commit
c268118c9c
1 changed files with 1 additions and 4 deletions
|
|
@ -18,7 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Terraria;
|
using Terraria;
|
||||||
|
|
@ -499,9 +498,7 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
if (args[0].Equals(ip))
|
if (args[0].Equals(ip))
|
||||||
{
|
{
|
||||||
IPHostEntry host = Dns.GetHostEntry(args[1]);
|
return GetGroup(args[1]);
|
||||||
IPAddress[] ipaddr = host.AddressList;
|
|
||||||
return GetGroup(ipaddr.GetValue(0).ToString());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sr.Close();
|
sr.Close();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue