From 240eff0a56f8721b6be5d64cf35b6e3dbccae8fe Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 19 Mar 2013 16:36:25 +0000 Subject: [PATCH 1/1] applications/luci-firewall: fix display bug in snat rule overview, proto all rules got displayed as TCP+UDP --- applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua b/applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua index 0f7462bcd..9bfa66bd0 100644 --- a/applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua +++ b/applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua @@ -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 } -- 2.11.0