From 95c507f61e9860fd83b13089cf0ef405cff70282 Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Thu, 19 Sep 2024 15:44:38 +0800 Subject: [PATCH] Update menu.sh --- scripts/menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/menu.sh b/scripts/menu.sh index 10739c2..f6240f8 100644 --- a/scripts/menu.sh +++ b/scripts/menu.sh @@ -609,7 +609,7 @@ setdns(){ #DNS设置 elif [ "$num" = 4 ]; then echo ----------------------------------------------- openssldir="$(openssl version -d 2>&1 | awk -F '"' '{print $2}')" - if [ -s "$openssldir/certs/ca-certificates.crt" -o "/etc/ssl/certs/ca-certificates.crt" ];then + if [ -s "$openssldir/certs/ca-certificates.crt" -o -s "/etc/ssl/certs/ca-certificates.crt" ];then dns_nameserver='https://223.5.5.5/dns-query, https://doh.pub/dns-query, tls://dns.rubyfish.cn:853' dns_fallback='tls://1.0.0.1:853, tls://8.8.4.4:853, https://doh.opendns.com/dns-query' setconfig dns_nameserver \'"$dns_nameserver"\'