Skip to content

Commit

Permalink
Removed empty fields from nat
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed May 10, 2024
1 parent 6897a01 commit 5c64cec
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions scripts/lua/modules/historical_flow_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -647,18 +647,26 @@ local function dt_format_minor_connection_state(id)
end

local function dt_format_port(value)
local label = value
if value == '0' then
label = ''
end
return {
value = value,
label = value,
title = value
value = label,
label = label,
title = label
}
end

local function dt_format_ip(value)
local label = value
if value == '0.0.0.0' then
label = ''
end
return {
value = value,
label = value,
title = value
value = label,
label = label,
title = label
}
end

Expand Down

0 comments on commit 5c64cec

Please sign in to comment.