diff --git a/bin/ZeroWrt b/bin/ZeroWrt index e5509c3..5ae9f95 100644 --- a/bin/ZeroWrt +++ b/bin/ZeroWrt @@ -512,6 +512,7 @@ one_click_setup() { uci set AdGuardHome.AdGuardHome.enabled='0' uci set AdGuardHome.AdGuardHome.redirect='none' cp /etc/config/default_AdGuardHome /etc/config/AdGuardHome.yaml + sed -i 's/upstream_dns_file:.*/upstream_dns_file: \/etc\/AdGuardHome-dns.yaml/' /etc/AdGuardHome.yaml uci commit AdGuardHome /etc/init.d/AdGuardHome restart # 恢复 passwall