[Modify] Add it

master
sta 8 years ago
parent 5af4f752a7
commit 1af3b26cb9

@ -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;

Loading…
Cancel
Save