Reworked local hosts port handling

This commit is contained in:
Luca Deri 2022-10-29 14:19:57 +02:00
parent cd7794708f
commit 45b7a1c931
9 changed files with 172 additions and 97 deletions

View file

@ -112,7 +112,9 @@ local function printPorts(ports)
print(i18n("none"))
else
for k,v in pairs(ports) do
print('<A HREF="/lua/flows_stats.lua?port='..v..'"><span class="badge bg-secondary">'.. v .."</span></A> ")
local res = split(k, ":")
print('<A HREF="/lua/flows_stats.lua?port='..res[2]..'"><span class="badge bg-secondary">'.. k.. " (" .. v ..")" .."</span></A> ")
end
end
end