From 16da5e8918cb369098a0591070beca86f042c36a Mon Sep 17 00:00:00 2001 From: Seth Call Date: Thu, 13 Aug 2020 13:42:59 -0500 Subject: [PATCH] restrict out empty IP --- websocket-gateway/lib/jam_websockets/router.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket-gateway/lib/jam_websockets/router.rb b/websocket-gateway/lib/jam_websockets/router.rb index 769570f50..1ab5e5e0c 100644 --- a/websocket-gateway/lib/jam_websockets/router.rb +++ b/websocket-gateway/lib/jam_websockets/router.rb @@ -1355,7 +1355,7 @@ module JamWebsockets # it's possible that a client will not be represented in the database anymore, due to hard to trace/guess scenario # usually involve reconnects. Double-check that all clients in memory are actually in the database. if not, delete them from memory - @stored_ars = Ars.where(active: true).all + @stored_ars = Ars.where(active: true).where('ip is not NULL').where("ip != ''").all if @client_lookup.length == 0 return