Replace obsolete GetHostByName with GetHostEntry

This commit is contained in:
Drake Arconis
2017-03-24 00:35:59 -04:00
parent c2c260c8a0
commit c762cc6d92

View File

@@ -117,7 +117,7 @@ namespace WinGridProxy
QueuedSessions = new List<ListViewItem>();
// populate the listen box with the known IP Addresses of this host
IPHostEntry iphostentry = Dns.GetHostByName(Dns.GetHostName());
IPHostEntry iphostentry = Dns.GetHostEntry(Dns.GetHostName());
foreach (IPAddress address in iphostentry.AddressList)
comboBoxListenAddress.Items.Add(address.ToString());