X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-firewall%2Fluasrc%2Fmodel%2Fcbi%2Ffirewall%2Frules.lua;h=9bfa66bd083671858375e5c2e40f5b0f3b33a288;hp=0f7462bcdc4c2856b1711665d7442409c3e56fbe;hb=9edd0e46c3f880727738ce8ca6ff1c8b85f99ef4;hpb=acb289083c6cc94363db8adbb94cfee8ff34938a 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 }