From c268118c9c85a5eca202877602db664a1c1bab62 Mon Sep 17 00:00:00 2001 From: high Date: Mon, 13 Jun 2011 21:55:36 -0400 Subject: [PATCH] Revert "Added DNS resolution for hostnames (no-ip and the like)." This reverts commit b32e11a49f9fa6676f71517e5dd1ca0496d65170. --- TShockAPI/Tools.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/TShockAPI/Tools.cs b/TShockAPI/Tools.cs index 6cafaf72..ed0e7a78 100755 --- a/TShockAPI/Tools.cs +++ b/TShockAPI/Tools.cs @@ -18,7 +18,6 @@ along with this program. If not, see . using System; using System.Collections.Generic; using System.IO; -using System.Net; using System.Text; using Microsoft.Xna.Framework; using Terraria; @@ -499,9 +498,7 @@ namespace TShockAPI } if (args[0].Equals(ip)) { - IPHostEntry host = Dns.GetHostEntry(args[1]); - IPAddress[] ipaddr = host.AddressList; - return GetGroup(ipaddr.GetValue(0).ToString()); + return GetGroup(args[1]); } } sr.Close();