Add interface check in captive portal login

This commit is contained in:
emanuele-f 2017-05-25 18:21:21 +02:00
parent f32182d1e4
commit ffa39896eb
4 changed files with 34 additions and 8 deletions

View file

@ -51,7 +51,7 @@ local to_skip = (currentPage-1) * perPage
local vals = {}
for key, value in pairs(users_list) do
if captivePortal and value["group"] ~= "captive_portal" then
if captivePortal and ((value["group"] ~= "captive_portal") or (value["allowed_ifname"] ~= ifname)) then
goto continue
elseif not captivePortal and value["group"] == "captive_portal" then
goto continue