mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
net/miniupnpd: ext_ip_reserved_ignore support
This add an option to ignore ext_ip reserved Enable this option in config by default. Fixes: #13773 Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
@@ -62,6 +62,7 @@ upnpd() {
|
||||
local use_stun stun_host stun_port uuid notify_interval presentation_url
|
||||
local upnp_lease_file clean_ruleset_threshold clean_ruleset_interval
|
||||
local ipv6_disable
|
||||
local ext_ip_reserved_ignore
|
||||
|
||||
local enabled
|
||||
config_get_bool enabled config enabled 1
|
||||
@@ -89,6 +90,7 @@ upnpd() {
|
||||
config_get clean_ruleset_threshold config clean_ruleset_threshold
|
||||
config_get clean_ruleset_interval config clean_ruleset_interval
|
||||
config_get ipv6_disable config ipv6_disable 0
|
||||
config_get ext_ip_reserved_ignore config ext_ip_reserved_ignore 0
|
||||
|
||||
local conf ifname ifname6
|
||||
|
||||
@@ -142,6 +144,7 @@ upnpd() {
|
||||
upnpd_write_bool igdv1 0 force_igd_desc_v1
|
||||
upnpd_write_bool use_stun 0 ext_perform_stun
|
||||
upnpd_write_bool ipv6_disable $ipv6_disable
|
||||
upnpd_write_bool ext_ip_reserved_ignore $ext_ip_reserved_ignore
|
||||
|
||||
[ "$use_stun" -eq 0 ] || {
|
||||
[ -n "$stun_host" ] && echo "ext_stun_host=$stun_host"
|
||||
|
||||
Reference in New Issue
Block a user