From: Jo-Philipp Wich Date: Tue, 19 Mar 2013 16:36:25 +0000 (+0000) Subject: applications/luci-firewall: fix display bug in snat rule overview, proto all rules... X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=240eff0a56f8721b6be5d64cf35b6e3dbccae8fe;hp=a6becaf5b5d12eedb3902e33a61540e757abafde applications/luci-firewall: fix display bug in snat rule overview, proto all rules got displayed as TCP+UDP --- 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 }