restrict out empty IP

This commit is contained in:
Seth Call 2020-08-13 13:42:59 -05:00
parent f790ee996a
commit 16da5e8918
1 changed files with 1 additions and 1 deletions

View File

@ -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