[Modify] Replace it
This commit is contained in:
parent
1b609838f4
commit
782cbee729
@ -164,7 +164,7 @@ namespace WebSocketSharp.Server
|
|||||||
if (!tryCreateUri (url, out uri, out msg))
|
if (!tryCreateUri (url, out uri, out msg))
|
||||||
throw new ArgumentException (msg, "url");
|
throw new ArgumentException (msg, "url");
|
||||||
|
|
||||||
var host = getHost (uri);
|
var host = uri.GetDnsSafeHost (true);
|
||||||
|
|
||||||
var addr = host.ToIPAddress ();
|
var addr = host.ToIPAddress ();
|
||||||
if (addr == null) {
|
if (addr == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user