Captive portal HTTP server fixes

This commit is contained in:
Simone Mainardi 2018-06-19 17:29:36 +02:00
parent 56b275124f
commit 8f1228c04f
7 changed files with 58 additions and 62 deletions

View file

@ -3068,7 +3068,7 @@ function isCaptivePortalSupported(ifstats, prefs, skip_interface_check)
end
local prefs = prefs or ntop.getPrefs()
return is_bridge_iface and (prefs["http.port"] == 80) and (prefs["http.alt_port"] ~= 0)
return is_bridge_iface and (prefs["http.port"] ~= 80)
end
-- Returns true if the captive portal is active right now