瀏覽代碼

dnsmasq: use "hostsdir" instead of "addn-hosts"

1.) "addn-hosts" per default point to a file (but it supports directory)
2.) "hostsdir" only support directory with the additional benefit: New or changed files are read automatically.

Signed-off-by: Christian Schoenebeck <[email protected]>
Christian Schoenebeck 7 年之前
父節點
當前提交
a03035dad1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package/network/services/dnsmasq/files/dnsmasq.init

+ 1 - 1
package/network/services/dnsmasq/files/dnsmasq.init

@@ -938,7 +938,7 @@ dnsmasq_start()
 
 	xappend "--dhcp-broadcast=tag:needs-broadcast"
 
-	xappend "--addn-hosts=$(dirname $HOSTFILE)"
+	xappend "--hostsdir=$(dirname $HOSTFILE)"
 
 	config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq.d"
 	[ ! -d "$dnsmasqconfdir" ] && mkdir -p $dnsmasqconfdir