diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-01-16 13:54:22 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-01-16 13:54:22 +0100 |
commit | a178cdb5cf67a3da8f37e5a8fd5d59fef301fb83 (patch) | |
tree | 0d18d8aaefb5c19dbda39831c2df57fd468957d3 | |
parent | a4f6cf87590bbbda5b57f48e426f15f98e495d04 (diff) |
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 <jo@mein.io>
-rw-r--r-- | applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js | 2 |
1 files changed, 1 insertions, 1 deletions
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'); } |