mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
dnsmasq: add directory for external hosts-files
SVN-Revision: 36655
This commit is contained in:
parent
334c40da14
commit
dd161ae62b
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=dnsmasq
|
||||
PKG_VERSION:=2.66
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
|
||||
|
@ -134,6 +134,9 @@ dnsmasq() {
|
||||
config_get hostsfile "$cfg" dhcphostsfile
|
||||
[ -e "$hostsfile" ] && xappend "--dhcp-hostsfile=$hostsfile"
|
||||
|
||||
mkdir -p /tmp/hosts
|
||||
xappend "--addn-hosts=/tmp/hosts"
|
||||
|
||||
local rebind
|
||||
config_get_bool rebind "$cfg" rebind_protection 1
|
||||
[ $rebind -gt 0 ] && {
|
||||
|
Loading…
x
Reference in New Issue
Block a user