[Modify] Rename it
This commit is contained in:
parent
1e2dfaa57c
commit
6bf83e095a
@ -643,7 +643,7 @@ namespace WebSocketSharp.Server
|
|||||||
_state = ServerState.Stop;
|
_state = ServerState.Stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool checkHostName (string name)
|
private bool checkHostNameForRequest (string name)
|
||||||
{
|
{
|
||||||
return !_dnsStyle
|
return !_dnsStyle
|
||||||
|| Uri.CheckHostName (name) != UriHostNameType.Dns
|
|| Uri.CheckHostName (name) != UriHostNameType.Dns
|
||||||
@ -721,7 +721,7 @@ namespace WebSocketSharp.Server
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!checkHostName (uri.DnsSafeHost)) {
|
if (!checkHostNameForRequest (uri.DnsSafeHost)) {
|
||||||
context.Close (HttpStatusCode.NotFound);
|
context.Close (HttpStatusCode.NotFound);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user