mirror of
https://github.com/TangentFoxy/lovebird.git
synced 2025-07-28 11:02:19 +00:00
Changed nil whitelist to whitelist everything
This commit is contained in:
@@ -269,7 +269,7 @@ function lovebird.update(dt)
|
|||||||
if client then
|
if client then
|
||||||
client:settimeout(2)
|
client:settimeout(2)
|
||||||
local addr = client:getsockname()
|
local addr = client:getsockname()
|
||||||
if find(lovebird.whitelist, addr) then
|
if not lovebird.whitelist or find(lovebird.whitelist, addr) then
|
||||||
xpcall(function() lovebird.onConnect(client) end, lovebird.onError)
|
xpcall(function() lovebird.onConnect(client) end, lovebird.onError)
|
||||||
else
|
else
|
||||||
trace("got non-whitelisted connection attempt: ", addr)
|
trace("got non-whitelisted connection attempt: ", addr)
|
||||||
|
Reference in New Issue
Block a user