[Modify] Use it
This commit is contained in:
parent
077b5d3063
commit
215574b9ab
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user