mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Code cleanup of bridge wizard
This commit is contained in:
parent
f9fff435f5
commit
b3018f52d6
5 changed files with 5 additions and 229 deletions
|
|
@ -3163,26 +3163,6 @@ function isBridgeInterface(ifstats)
|
|||
return ifstats.inline
|
||||
end
|
||||
|
||||
function hasBridgeInterfaces(skip_netfilter)
|
||||
local curif = ifname
|
||||
local ifnames = interface.getIfNames()
|
||||
local found = false
|
||||
|
||||
for _,ifname in pairs(ifnames) do
|
||||
interface.select(ifname)
|
||||
|
||||
local ifstats = interface.getStats()
|
||||
if isBridgeInterface(ifstats)
|
||||
and (skip_netfilter~=true or ifstats.type ~= "netfilter") then
|
||||
found = true
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
interface.select(curif)
|
||||
return found
|
||||
end
|
||||
|
||||
-- Returns true if the captive portal can be started with the current configuration
|
||||
function isCaptivePortalSupported(ifstats, prefs, skip_interface_check)
|
||||
if not ntop.isEnterprise() and not ntop.isnEdge() then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue