fix AdGuardHome

This commit is contained in:
CN_SZTL 2019-07-03 22:40:47 +08:00
parent bdfde8f929
commit 0893e63680
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,7 @@ define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
TITLE:=AdGuardHome
DEPENDS:=
DEPENDS:=+dnsforwarder
URL:=https://github.com/AdguardTeam/AdGuardHome/releases
endef

View File

@ -105,7 +105,7 @@ server {
server {
label = "special"; # 这个随便写
ip = 208.67.222.222,208.67.220.220; # 这里为备用DNS服务器的 ip 地址
ip = 117.50.10.10,52.80.52.52,119.29.29.29; # 这里为备用DNS服务器的 ip 地址
port = 5353; # 推荐使用53以外的端口DNS服务器必须支持
proxy_only = on;
timeout = 5;
@ -232,9 +232,10 @@ start_service(){
sleep 1
if [ $dnscache_enable = "1" ]; then
start_pdnsd
elif [ $dnscache_enable = "2" ] || [ $dnscache_enable = "3" ]; then
elif [ $dnscache_enable = "2" ]; then
start_dnsforwarder
elif [ $dnscache_enable = "3" ]; then
start_dnsforwarder
AdGuardHome -c /etc/AdGuardHome/AdGuardHome.yaml -w /etc/AdGuardHome -h 0.0.0.0 -p 3000 >/dev/null 2>&1 &
fi
change_dns