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