Skip to content

Commit 7e80310

Browse files
miniupnpd: Rename and invert UCI config option secure_mode to
`allow_third_party_maps` Signed-off-by: Self Hosting Group <[email protected]>
1 parent 467e5e6 commit 7e80310

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

net/miniupnpd/files/miniupnpd.init

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

net/miniupnpd/files/upnpd.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)