dnsmasq: Don't add local hostname if ula prefix is not specified
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 25 Jan 2016 17:47:22 +0000 (17:47 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 25 Jan 2016 17:47:22 +0000 (17:47 +0000)
commit765d89c5d1c7671e2fea33eb99eb05d864e9f41b
tree87a288cc4dc65333fbc74d02f7d8195201edcf04
parentbd92749af6878a93f9123fc7eeef8bb98da662ec
dnsmasq: Don't add local hostname if ula prefix is not specified

Commit 6a7e56b adds support for adding local hostname for own lan ula adress
but if ula prefix is not specified results into an invalid config (address=/OpenWrt.lan/1)
causing dnsmasq not to start up.
Use lanaddr6 when adding local hostname as the lan ula address is constructed based on the
UCI parameters ip6hint and ip6ifaceid and thus not always ula prefix suffixed with 1

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 48495
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init