applications/luci-firewall: fix display bug in snat rule overview, proto all rules got displayed as TCP+UDP
This commit is contained in:
parent
a6becaf5b5
commit
240eff0a56
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ ft.opt_name(s, DummyValue, translate("Name"))
|
||||||
local function rule_proto_txt(self, s)
|
local function rule_proto_txt(self, s)
|
||||||
local f = self.map:get(s, "family")
|
local f = self.map:get(s, "family")
|
||||||
local p = ft.fmt_proto(self.map:get(s, "proto"),
|
local p = ft.fmt_proto(self.map:get(s, "proto"),
|
||||||
self.map:get(s, "icmp_type")) or "TCP+UDP"
|
self.map:get(s, "icmp_type")) or translate("traffic")
|
||||||
|
|
||||||
if f and f:match("4") then
|
if f and f:match("4") then
|
||||||
return "%s-%s" %{ translate("IPv4"), p }
|
return "%s-%s" %{ translate("IPv4"), p }
|
||||||
|
|
Loading…
Reference in a new issue