From 842bc66751d934e731c04ac72fb8658c70217b8c 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: Tue, 14 Mar 2023 01:30:32 +0000 Subject: [PATCH] Update 661.sh --- 661.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/661.sh b/661.sh index a9c8318..3438006 100644 --- a/661.sh +++ b/661.sh @@ -693,9 +693,7 @@ point echo $endpoint po1=`grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+' /usr/local/bin/warp.conf` echo $po1 - sed -i "s/$po1/$endpoint/g" /usr/local/bin/warp.conf - systemctl daemon-reload systemctl enable warp-go systemctl start warp-go @@ -1401,6 +1399,11 @@ cp -f wgcf-account.toml /etc/wireguard/buckup-account.toml >/dev/null 2>&1 ABC mv -f wgcf-profile.conf /etc/wireguard >/dev/null 2>&1 mv -f wgcf-account.toml /etc/wireguard >/dev/null 2>&1 +point +echo $endpoint +po1=`grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+' /etc/wireguard/wgcf.conf` +echo $po1 +sed -i "s/$po1/$endpoint/g" /etc/wireguard/wgcf.conf systemctl enable wg-quick@wgcf >/dev/null 2>&1 CheckWARP && ShowWGCF && WGCFmenu && lncf }