[Modify] Add it

This commit is contained in:
sta 2018-04-26 19:56:52 +09:00
parent 5af4f752a7
commit 1af3b26cb9

View File

@ -724,6 +724,17 @@ namespace WebSocketSharp.Server
_state = ServerState.Stop;
}
private bool authenticateClient (TcpListenerWebSocketContext context)
{
if (_authSchemes == AuthenticationSchemes.Anonymous)
return true;
if (_authSchemes == AuthenticationSchemes.None)
return false;
return context.Authenticate (_authSchemes, _realmInUse, _userCredFinder);
}
private bool canSet (out string message)
{
message = null;