var config_name = this.uciconfig || this.map.config,
section_id = uci.add(config_name, this.sectiontype);
+ uci.set(config_name, section_id, 'dest', 'lan');
uci.set(config_name, section_id, 'target', 'DNAT');
- this.addedSection = section_id;
+ m.addedSection = section_id;
this.renderMoreOptionsModal(section_id);
};
o.modalonly = true;
o.rmempty = true;
o.nocreate = true;
- o.default = 'lan';
o = fwtool.addIPOption(s, 'general', 'dest_ip', _('Internal IP address'),
_('Redirect matched incoming traffic to the specified internal host'), 'ipv4', hosts);
emptyval.setAttribute('data-value', '');
}
- L.dom.content(emptyval.querySelector('span'), [
- E('strong', _('Device')), E('span', ' (%s)'.format(_('input')))
- ]);
+ if (opt[0].allowlocal)
+ L.dom.content(emptyval.querySelector('span'), [
+ E('strong', _('Device')), E('span', ' (%s)'.format(_('input')))
+ ]);
L.dom.content(anyval.querySelector('span'), [
E('strong', _('Any zone')), E('span', ' (%s)'.format(_('forward')))