[Modify] Rename it

This commit is contained in:
sta 2016-10-19 15:18:40 +09:00
parent 1e2dfaa57c
commit 6bf83e095a

View File

@ -643,7 +643,7 @@ namespace WebSocketSharp.Server
_state = ServerState.Stop;
}
private bool checkHostName (string name)
private bool checkHostNameForRequest (string name)
{
return !_dnsStyle
|| Uri.CheckHostName (name) != UriHostNameType.Dns
@ -721,7 +721,7 @@ namespace WebSocketSharp.Server
return;
}
if (!checkHostName (uri.DnsSafeHost)) {
if (!checkHostNameForRequest (uri.DnsSafeHost)) {
context.Close (HttpStatusCode.NotFound);
return;
}