mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Improve bridge preferences with netfilter interfaces
This commit is contained in:
parent
2c2374bfbc
commit
7fbcd40ec5
2 changed files with 9 additions and 2 deletions
|
|
@ -3365,7 +3365,7 @@ function isBridgeInterface(ifstats)
|
|||
return ifstats.inline
|
||||
end
|
||||
|
||||
function hasBridgeInterfaces()
|
||||
function hasBridgeInterfaces(skip_netfilter)
|
||||
local curif = ifname
|
||||
local ifnames = interface.getIfNames()
|
||||
local found = false
|
||||
|
|
@ -3374,7 +3374,8 @@ function hasBridgeInterfaces()
|
|||
interface.select(ifname)
|
||||
|
||||
local ifstats = interface.getStats()
|
||||
if isBridgeInterface(ifstats) then
|
||||
if isBridgeInterface(ifstats)
|
||||
and (skip_netfilter~=true or ifstats.type ~= "netfilter") then
|
||||
found = true
|
||||
break
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue