Merge pull request #276 from kdarbyshirebryant/upnpenabled

miniupnpd: implement an 'enabled' flag
This commit is contained in:
Markus Stenberg 2017-02-22 09:59:36 +02:00 committed by GitHub
commit 209a58d40f
2 changed files with 6 additions and 1 deletions

View File

@ -68,7 +68,11 @@ start() {
local extip port usesysuptime conffile serial_number model_number
local uuid notify_interval presentation_url enable_upnp
local upnp_lease_file clean_ruleset_threshold clean_ruleset_interval
local ipv6_listening_ip
local ipv6_listening_ip enabled
config_get_bool enabled config enabled 1
[ "$enabled" -gt 0 ] || return 1
config_get extiface config external_iface
config_get extzone config external_zone

View File

@ -1,4 +1,5 @@
config upnpd config
option enabled 0
option enable_natpmp 1
option enable_upnp 1
option secure_mode 1