From fb057a42b29457955f18ee6bd31aa39bc4173753 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: Sun, 14 Aug 2022 06:48:58 +0000 Subject: [PATCH] Update WARP-CR.sh --- WARP-CR.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/WARP-CR.sh b/WARP-CR.sh index 415d37b..f6e561b 100644 --- a/WARP-CR.sh +++ b/WARP-CR.sh @@ -110,7 +110,9 @@ sed -i "s/162.159.193.8/162.159.193.9/g" /etc/wireguard/wgcf.conf elif [[ -n $(grep -w 162.159.193.9 /etc/wireguard/wgcf.conf) ]]; then sed -i "s/162.159.193.9/162.159.193.1/g" /etc/wireguard/wgcf.conf fi -systemctl restart wg-quick@wgcf +wg-quick down wgcf >/dev/null 2>&1 +sleep 1 +wg-quick up wgcf >/dev/null 2>&1 } info1