From 42e27f01b4393729fce8828aa61ffb97006d4671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= Date: Wed, 15 Feb 2023 09:08:41 +0000 Subject: [PATCH] Update 1.sh --- 1.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/1.sh b/1.sh index a1a0f56..46b013b 100644 --- a/1.sh +++ b/1.sh @@ -32,6 +32,11 @@ else red "不支持你当前系统,请选择使用Ubuntu,Debian,Centos系统。" && exit fi +v4=$(curl -s4m6 ip.sb -k) +if [ -z $v4 ]; then +echo -e nameserver 2a01:4f8:c2c:123f::1 > /etc/resolv.conf +fi + [[ $(type -P yum) ]] && yumapt='yum -y' || yumapt='apt -y' if [[ $release = Centos ]]; then if [[ ${vsid} =~ 8 ]]; then