applications/luci-firewall: fix display bug in snat rule overview, proto all rules...
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 19 Mar 2013 16:36:25 +0000 (16:36 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 19 Mar 2013 16:36:25 +0000 (16:36 +0000)
applications/luci-firewall/luasrc/model/cbi/firewall/rules.lua

index 0f7462b..9bfa66b 100644 (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"),
 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 }
 
        if f and f:match("4") then
                return "%s-%s" %{ translate("IPv4"), p }