mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-03 20:32:08 -04:00
Log dupe connection attempts
This commit is contained in:
@@ -163,6 +163,11 @@ async function initApp({ baseURL, clientStaticPath }: AppOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (currentStreamwallWs != null) {
|
if (currentStreamwallWs != null) {
|
||||||
|
console.warn(
|
||||||
|
'Rejecting Streamwall connection (already connected) from',
|
||||||
|
request.ip,
|
||||||
|
tokenInfo,
|
||||||
|
)
|
||||||
ws.send(JSON.stringify({ error: 'streamwall already connected' }))
|
ws.send(JSON.stringify({ error: 'streamwall already connected' }))
|
||||||
ws.close()
|
ws.close()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user