[Modify] Add it

This commit is contained in:
sta 2017-02-15 17:11:38 +09:00
parent 04feb7b61c
commit 40781f7d04

View File

@ -667,6 +667,23 @@ namespace WebSocketSharp.Server
_state = ServerState.Stop;
}
private bool canSet (out string message)
{
message = null;
if (_state == ServerState.Start) {
message = "The server has already started.";
return false;
}
if (_state == ServerState.ShuttingDown) {
message = "The server is shutting down.";
return false;
}
return true;
}
private bool checkHostNameForRequest (string name)
{
return !_dnsStyle