mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
dnsmasq: add listen_address parameter
This commit is contained in:
parent
0b130e4e18
commit
53eada2a47
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=dnsmasq
|
||||
PKG_VERSION:=2.78
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq/
|
||||
|
@ -142,6 +142,10 @@ append_interface() {
|
||||
xappend "--interface=$ifname"
|
||||
}
|
||||
|
||||
append_listenaddress() {
|
||||
xappend "--listen-address=$1"
|
||||
}
|
||||
|
||||
append_notinterface() {
|
||||
network_get_device ifname "$1" || ifname="$1"
|
||||
xappend "--except-interface=$ifname"
|
||||
@ -835,6 +839,7 @@ dnsmasq_start()
|
||||
append_parm "$cfg" "maxport" "--max-port"
|
||||
append_parm "$cfg" "domain" "--domain"
|
||||
append_parm "$cfg" "local" "--server"
|
||||
config_list_foreach "$cfg" "listen_address" append_listenaddress
|
||||
config_list_foreach "$cfg" "server" append_server
|
||||
config_list_foreach "$cfg" "rev_server" append_rev_server
|
||||
config_list_foreach "$cfg" "address" append_address
|
||||
|
Loading…
Reference in New Issue
Block a user