From 7077fd8c79eef5f044959bacfd6f66252850968a Mon Sep 17 00:00:00 2001 From: Jitao Lu Date: Thu, 3 Dec 2020 23:36:09 +0800 Subject: [PATCH] miniupnpd: Pass ipv6 addr to ipv6_listening_ip 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 --- net/miniupnpd/Makefile | 2 +- net/miniupnpd/files/miniupnpd.init | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/miniupnpd/Makefile b/net/miniupnpd/Makefile index 0a99b415f7..f69c317771 100644 --- a/net/miniupnpd/Makefile +++ b/net/miniupnpd/Makefile @@ -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 diff --git a/net/miniupnpd/files/miniupnpd.init b/net/miniupnpd/files/miniupnpd.init index 71c1dffe65..901ca8b4e7 100644 --- a/net/miniupnpd/files/miniupnpd.init +++ b/net/miniupnpd/files/miniupnpd.init @@ -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" -- 2.30.2