reverse brutforce check
This commit is contained in:
parent
7da2783b04
commit
083bec3d30
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ export const activateWS = () => { activeWS = true; };
|
|||
|
||||
export const wsOnConnection = (socket: ws.WebSocket, req: http.IncomingMessage) => {
|
||||
let ip = req.socket.remoteAddress;
|
||||
if (!activeWS || bruteforcecheck(ip ?? "")) {
|
||||
if (!activeWS || !bruteforcecheck(ip ?? "")) {
|
||||
debug("WebSocket", "Rejected ip for bruteforce suspicion:", ip);
|
||||
socket.close();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue