File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ upnpd() {
8787 config_get presentation_url config presentation_url
8888 config_get upnp_lease_file config upnp_lease_file
8989 config_get ipv6_disable config ipv6_disable 0
90- config_get_bool secure_mode config secure_mode 1
90+ config_get_bool allow_third_party_maps config allow_third_party_maps 0
9191 config_get upnp_igd_compat config upnp_igd_compat igdv1
9292
9393 local conf ifname ifname6
@@ -136,10 +136,11 @@ upnpd() {
136136 config_load " upnpd"
137137 upnpd_write_bool enable_pcp_pmp 1
138138 upnpd_write_bool enable_upnp 1
139- upnpd_write_bool secure_mode 1
140- if [ " $ secure_mode" = " 0 " ] ; then
139+ if [ " $allow_third_party_maps " = " 1 " ] ; then
140+ echo " secure_mode=no "
141141 echo " pcp_allow_thirdparty=yes"
142142 else
143+ echo " secure_mode=yes"
143144 echo " pcp_allow_thirdparty=no"
144145 fi
145146 if [ " $upnp_igd_compat " = " igdv1" ]; then
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ config upnpd config
22 option enabled 0
33 option enable_pcp_pmp 1
44 option enable_upnp 1
5- option secure_mode 1
5+ option allow_third_party_maps 0
66 option log_output 0
77 option download_kbps 100000
88 option upload_kbps 50000
You can’t perform that action at this time.
0 commit comments