return rv;
},
+ fmt_family: function(family) {
+ if (family == 'ipv4')
+ return _('IPv4');
+ else if (family == 'ipv6')
+ return _('IPv6');
+ else
+ return _('IPv4 and IPv6');
+ },
+
fmt_proto: function(x, icmp_types) {
var rv = E([]), l = L.toArray(x);
}
function forward_proto_txt(s) {
- return fmt('%s-%s', _('IPv4'),
+ return fmt('%s-%s',
+ fwtool.fmt_family(uci.get('firewall', s, 'family')),
fwtool.fmt_proto(uci.get('firewall', s, 'proto'),
uci.get('firewall', s, 'icmp_type')) || 'TCP+UDP');
}
}
function forward_proto_txt(s) {
- return fmt('%s-%s', _('IPv4'),
+ return fmt('%s-%s',
+ fwtool.fmt_family(uci.get('firewall', s, 'family')),
fwtool.fmt_proto(uci.get('firewall', s, 'proto'),
uci.get('firewall', s, 'icmp_type')) || 'TCP+UDP');
}