Little fixes

This commit is contained in:
emanuele-f 2017-05-16 14:46:45 +02:00
parent fe239544d4
commit 2d1a0a518d
4 changed files with 5 additions and 4 deletions

View file

@ -3162,12 +3162,12 @@ function isCaptivePortalSupported(ifstats, prefs, skip_interface_check)
if not skip_interface_check then
local ifstats = ifstats or interface.getStats()
local prefs = prefs or ntop.getPrefs()
is_bridge_iface = isBridgeInterface(ifstats)
else
is_bridge_iface = true
end
local prefs = prefs or ntop.getPrefs()
return is_bridge_iface and (prefs["http.port"] == 80) and (prefs["http.alt_port"] ~= 0)
end