Skip to content

Commit

Permalink
miniupnpd: Pass ipv6 addr to ipv6_listening_ip
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
moetayuko committed Dec 3, 2020
1 parent 4715102 commit 7077fd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion net/miniupnpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions net/miniupnpd/files/miniupnpd.init
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7077fd8

Please sign in to comment.