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