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>
(cherry picked from commit a178cdb5cf
)
This commit is contained in:
parent
1787cd4a4c
commit
f8265cefc7
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue