mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixed SQL query
This commit is contained in:
parent
a58c64aa29
commit
f954a6f2d0
1 changed files with 2 additions and 2 deletions
|
|
@ -53,8 +53,8 @@ function getInterfaceTopFlows(interface_id, version, host, l7proto, l4proto, por
|
|||
if((host ~= nil) and (host ~= "")) then
|
||||
if(version == 4) then
|
||||
rsp = expandIpV4Network(host)
|
||||
follow = follow .." AND ((IP_SRC_ADDR>="..rsp[1]..") AND (IP_SRC_ADDR <= "..rsp[2].."))"
|
||||
follow = follow .." OR ((IP_DST_ADDR>="..rsp[1]..") AND (IP_DST_ADDR <= "..rsp[2].."))"
|
||||
follow = follow .." AND (((IP_SRC_ADDR>="..rsp[1]..") AND (IP_SRC_ADDR <= "..rsp[2].."))"
|
||||
follow = follow .." OR ((IP_DST_ADDR>="..rsp[1]..") AND (IP_DST_ADDR <= "..rsp[2]..")))"
|
||||
else
|
||||
follow = follow .." AND (IP_SRC_ADDR='"..host.."' OR IP_DST_ADDR='"..host.."')"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue