From 9b6537b4877077cbc68b9156da363d834fe53a69 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Thu, 2 Jul 2020 06:18:45 +0300 Subject: [PATCH] miniupnpd: add miniupnpd ipv6_disable option, #11971 close Signed-off-by: Alexey Kuznetsov --- net/miniupnpd/Makefile | 2 +- net/miniupnpd/files/miniupnpd.init | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/net/miniupnpd/Makefile b/net/miniupnpd/Makefile index 00caa8f12f..88a47612b5 100644 --- a/net/miniupnpd/Makefile +++ b/net/miniupnpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=miniupnpd PKG_VERSION:=2.1.20200510 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz diff --git a/net/miniupnpd/files/miniupnpd.init b/net/miniupnpd/files/miniupnpd.init index 22461f9f63..4c1ccd2926 100644 --- a/net/miniupnpd/files/miniupnpd.init +++ b/net/miniupnpd/files/miniupnpd.init @@ -61,6 +61,7 @@ upnpd() { local upload download log_output port config_file serial_number model_number 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 enabled config_get_bool enabled config enabled 1 @@ -87,6 +88,7 @@ upnpd() { config_get upnp_lease_file config upnp_lease_file 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 local conf ifname ifname6 @@ -139,6 +141,7 @@ upnpd() { upnpd_write_bool system_uptime 1 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 [ "$use_stun" -eq 0 ] || { [ -n "$stun_host" ] && echo "ext_stun_host=$stun_host" -- 2.30.2