[packages] miniupnpd: append netmask to listening_ip, fixes miniupnpd with non-/24 prefixes
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29673 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
25409389ea
commit
ead031c672
@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=miniupnpd
|
||||
PKG_VERSION:=1.6.20110730
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE_URL:=http://miniupnp.free.fr/files
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
|
@ -106,10 +106,11 @@ start() {
|
||||
|
||||
local iface
|
||||
for iface in ${intiface:-lan}; do
|
||||
local ipaddr
|
||||
local ipaddr netmask
|
||||
config_get ipaddr "$iface" ipaddr
|
||||
config_get netmask "$iface" netmask "255.255.255.0"
|
||||
[ -n "$ipaddr" ] && \
|
||||
echo "listening_ip=$ipaddr" >>$tmpconf
|
||||
echo "listening_ip=$ipaddr/$netmask" >>$tmpconf
|
||||
done
|
||||
|
||||
[ "$port" != "auto" ] && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user