mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix bpf filter in nbox pcap extraction (added escapeHTML)
This commit is contained in:
parent
b6eb2bc36c
commit
01f56ab9a6
1 changed files with 1 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ function createBPF()
|
|||
if peer ~= nil and peer ~= "" then if bpf ~= "" then bpf = bpf.." and " end bpf = bpf.."src or dst host "..peer end
|
||||
if port ~= nil and port ~= "" then if bpf ~= "" then bpf = bpf.." and " end bpf = bpf.."port "..port end
|
||||
if l4proto ~= nil and l4proto ~= "" then if bpf ~= "" then bpf = bpf.." and " end bpf = bpf.."ip proto "..l4proto end
|
||||
if bpf ~= "" then bpf=escapeHTML(bpf) end
|
||||
if bpf ~= "" then return "&bpf="..bpf else return "" end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue