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 <dianlujitao@gmail.com>
(cherry picked from commit 7077fd8c79)
This commit is contained in:
Jitao Lu 2020-12-03 23:36:09 +08:00 committed by Rosen Penev
parent 33bd6b6afa
commit e82884cafb
No known key found for this signature in database
GPG key ID: 36D31CFA845F0E3B
2 changed files with 3 additions and 3 deletions

View 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

View 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"