[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; _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;
} }