mirror of
https://github.com/openwrt/packages.git
synced 2026-04-20 20:38:36 +04:00
natmap: fix service not stopped when disabled in luci
luci removes `enable` option when disabled, fix by setting default value to 0. Signed-off-by: Richard Yu <yurichard3839@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@ load_interfaces() {
|
||||
|
||||
validate_section_natmap() {
|
||||
uci_load_validate "${NAME}" natmap "$1" "$2" \
|
||||
'enable:bool:1' \
|
||||
'enable:bool:0' \
|
||||
'family:string' \
|
||||
'udp_mode:bool:0' \
|
||||
'interface:string' \
|
||||
|
||||
Reference in New Issue
Block a user