add `rmempty` to keep values in config file
Signed-off-by: Andy Chiang <redacted>
o = s.taboption('general', form.ListValue, 'target', _('Action'));
o.modalonly = true;
o.default = 'ACCEPT';
+ o.rmempty = false;
o.value('DROP', _('drop'));
o.value('ACCEPT', _('accept'));
o.value('REJECT', _('reject'));
}
p[0].default = fwDefaults.getInput();
+ p[0].rmempty = false;
p[1].default = fwDefaults.getOutput();
+ p[1].rmempty = false;
p[2].default = fwDefaults.getForward();
+ p[2].rmempty = false;
o = s.taboption('general', form.Flag, 'masq', _('IPv4 Masquerading'),
_('Enable network address and port translation IPv4 (NAT4 or NAPT4) for outbound traffic on this zone. This is typically enabled on the <em>wan</em> zone.'));