summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-01-16 13:54:22 +0100
committerJo-Philipp Wich <jo@mein.io>2020-01-16 13:54:22 +0100
commita178cdb5cf67a3da8f37e5a8fd5d59fef301fb83 (patch)
tree0d18d8aaefb5c19dbda39831c2df57fd468957d3 /applications
parenta4f6cf87590bbbda5b57f48e426f15f98e495d04 (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>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js2
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 dc2249275..af2f9b76e 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');
}