[Modify] Use it

master
sta 9 years ago
parent 077b5d3063
commit 215574b9ab

@ -630,12 +630,9 @@ namespace WebSocketSharp.Server
return; return;
} }
if (_dnsStyle) { if (!checkHostName (uri.DnsSafeHost)) {
var hostname = uri.DnsSafeHost; context.Close (HttpStatusCode.NotFound);
if (Uri.CheckHostName (hostname) == UriHostNameType.Dns && hostname != _hostname) { return;
context.Close (HttpStatusCode.NotFound);
return;
}
} }
WebSocketServiceHost host; WebSocketServiceHost host;

Loading…
Cancel
Save