miniupnpd: Pass ipv6 addr to ipv6_listening_ip 14125/head
authorJitao Lu <dianlujitao@gmail.com>
Thu, 3 Dec 2020 15:36:09 +0000 (23:36 +0800)
committerJitao Lu <dianlujitao@gmail.com>
Thu, 3 Dec 2020 15:36:09 +0000 (23:36 +0800)
Unlike ipv4, this option is supposed to be an IP address, otherwise, an
error occurs on startup:

    can't parse "br-lan" as valid IPv6 listening address

Signed-off-by: Jitao Lu <dianlujitao@gmail.com>
net/miniupnpd/Makefile
net/miniupnpd/files/miniupnpd.init

index 0a99b415f732ef89302e8f4432695b22c13f89bf..f69c3177717276b4f3d6c36a7ffe23da8d436784 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=miniupnpd
 PKG_VERSION:=2.2.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
index 71c1dffe6571fea5c3e3190520062e8901ae9b12..901ca8b4e76c9275d46244a8b3afad5fc099a260 100644 (file)
@@ -131,9 +131,9 @@ upnpd() {
 
                local iface
                for iface in ${internal_iface:-lan}; do
-                       local device
+                       local device addr6
                        network_get_device device "$iface" && echo "listening_ip=$device"
-                       network_get_device device "$iface" && echo "ipv6_listening_ip=$device"
+                       network_get_ipaddr6 addr6 "$iface" && echo "ipv6_listening_ip=$addr6"
                done
 
                config_load "upnpd"