Fix allowed networks when --disable-login is used

This commit is contained in:
emanuele-f 2020-02-06 18:51:33 +01:00
parent 0613f234fc
commit 6b89854ba8
2 changed files with 2 additions and 2 deletions

View file

@ -133,7 +133,7 @@ function hasAllowedNetworksSet()
cached_allowed_networks_set = false
for _, net in pairs(allowed_nets) do
if((net ~= "0.0.0.0/0") and (net ~= "::/0")) then
if((not isEmptyString(net)) and (net ~= "0.0.0.0/0") and (net ~= "::/0")) then
cached_allowed_networks_set = true
break
end