[Modify] Polish it
This commit is contained in:
parent
2694059ef2
commit
732ec70671
@ -1501,6 +1501,7 @@ namespace WebSocketSharp
|
||||
|
||||
var host = System.Net.Dns.GetHostName ();
|
||||
var addrs = System.Net.Dns.GetHostAddresses (host);
|
||||
|
||||
foreach (var addr in addrs) {
|
||||
if (address.Equals (addr))
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user