Update WARP-CP.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2022-08-14 06:47:12 +00:00
parent 31bcc39930
commit 045c924327
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,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 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 sed -i "s/162.159.193.9/162.159.193.1/g" /etc/wireguard/wgcf.conf
fi fi
systemctl restart wg-quick@wgcf wg-quick down wgcf >/dev/null 2>&1
sleep 1
wg-quick up wgcf >/dev/null 2>&1
} }
WGCFV4(){ WGCFV4(){