diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile index de0237b314f..89799eec6b0 100644 --- a/package/network/services/dnsmasq/Makefile +++ b/package/network/services/dnsmasq/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dnsmasq PKG_VERSION:=2.75 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index efc96273a2f..db342e7c8eb 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -609,11 +609,11 @@ start_service() { dhcp_domain_add "" "$hostname" "$lanaddr" } - network_get_ipaddrs6 lanaddr6 "lan" && { + [ -n "$ulaprefix" ] && network_get_ipaddrs6 lanaddr6 "lan" && { for lanaddr6 in $lanaddr6; do case "$lanaddr6" in "${ulaprefix%%:/*}"*) - dhcp_domain_add "" "$hostname" "${ulaprefix%%/*}1" + dhcp_domain_add "" "$hostname" "$lanaddr6" ;; esac done