mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-15 21:03:49 +08:00
dnsmasq: use append_interface_name when using option --interface-name
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
This commit is contained in:
parent
eb99f8912a
commit
54ea0f45c8
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=dnsmasq
|
||||
PKG_VERSION:=2.77test5
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq/test-releases
|
||||
|
@ -337,14 +337,14 @@ dhcp_this_host_add() {
|
||||
if [ "$mode" -gt 1 ] ; then
|
||||
if [ "$mode" -gt 2 ] ; then
|
||||
if [ "$mode" -gt 3 ] ; then
|
||||
xappend "--interface-name=$ifdashname.$routername.$DOMAIN,$ifname"
|
||||
append_interface_name "$ifdashname.$routername.$DOMAIN" "$ifname"
|
||||
fi
|
||||
|
||||
xappend "--interface-name=$routername.$DOMAIN,$ifname"
|
||||
append_interface_name "$routername.$DOMAIN" "$ifname"
|
||||
fi
|
||||
|
||||
# All IP addresses discovered by dnsmasq will be labeled (except fe80::)
|
||||
xappend "--interface-name=$routername,$ifname"
|
||||
append_interface_name "$routername" "$ifname"
|
||||
|
||||
else
|
||||
# This uses a static host file entry for only limited addresses.
|
||||
|
Loading…
Reference in New Issue
Block a user