From: Jo-Philipp Wich Date: Thu, 16 Jan 2020 12:54:22 +0000 (+0100) Subject: luci-app-firewall: fix family display for port forwards X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a178cdb5cf67a3da8f37e5a8fd5d59fef301fb83;p=project%2Fluci.git luci-app-firewall: fix family display for port forwards The underlying fw3 program currently only does IPv4 port forwards while LuCI incorrectly reports IPv4 + IPv6 for each forward. Adjust the text accordingly to fix this. Signed-off-by: Jo-Philipp Wich --- diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js index dc2249275e..af2f9b76e8 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js @@ -43,7 +43,7 @@ function fmt(fmt /*, ...*/) { function forward_proto_txt(s) { return fmt('%s-%s', - fwtool.fmt_family(uci.get('firewall', s, 'family')), + fwtool.fmt_family('ipv4'), fwtool.fmt_proto(uci.get('firewall', s, 'proto'), uci.get('firewall', s, 'icmp_type')) || 'TCP+UDP'); }