applications/luci-firewall: fix display bug in snat rule overview, proto all rules got displayed as TCP+UDP

This commit is contained in:
Jo-Philipp Wich 2013-03-19 16:36:25 +00:00
parent a6becaf5b5
commit 240eff0a56

View file

@ -87,7 +87,7 @@ ft.opt_name(s, DummyValue, translate("Name"))
local function rule_proto_txt(self, s)
local f = self.map:get(s, "family")
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
return "%s-%s" %{ translate("IPv4"), p }