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