mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
improved ipv4 validation function
This commit is contained in:
parent
dd8c26d0cc
commit
75363aae84
2 changed files with 18 additions and 21 deletions
|
|
@ -28,7 +28,7 @@ local function reportError(msg)
|
|||
end
|
||||
|
||||
local function isValidHostMeasurementCombination(host, measurement)
|
||||
local host_v4 = isIPv4(host) or isIPv4WithPort(host)
|
||||
local host_v4 = isIPv4(host)
|
||||
local host_v6 = isIPv6(host)
|
||||
local expected_ipv = ternary((measurement == "icmp6"), 6, 4)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue