From: Sadie Powell Date: Thu, 19 Nov 2020 20:29:54 +0000 (+0000) Subject: Fail websocket connections if changing the user's IP errors. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=061a2e1aed3727b785976ea167cf2084d3e8f0f9;p=user%2Fhenk%2Fcode%2Finspircd.git Fail websocket connections if changing the user's IP errors. --- diff --git a/src/modules/m_websocket.cpp b/src/modules/m_websocket.cpp index e2b0ee30a..1cba6bca6 100644 --- a/src/modules/m_websocket.cpp +++ b/src/modules/m_websocket.cpp @@ -370,6 +370,10 @@ class WebSocketHook : public IOHookMiddle // Give the user their real IP address. if (realsa != luser->client_sa) luser->SetClientIP(realsa); + + // Error if changing their IP gets them banned. + if (luser->quitting) + return -1; break; } }