mirror of https://gitlab.com/rwkgyg/CFwarp.git
Update 661.sh
This commit is contained in:
parent
5c0a0b7aee
commit
842bc66751
7
661.sh
7
661.sh
|
@ -693,9 +693,7 @@ point
|
||||||
echo $endpoint
|
echo $endpoint
|
||||||
po1=`grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+' /usr/local/bin/warp.conf`
|
po1=`grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+' /usr/local/bin/warp.conf`
|
||||||
echo $po1
|
echo $po1
|
||||||
|
|
||||||
sed -i "s/$po1/$endpoint/g" /usr/local/bin/warp.conf
|
sed -i "s/$po1/$endpoint/g" /usr/local/bin/warp.conf
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable warp-go
|
systemctl enable warp-go
|
||||||
systemctl start 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
|
ABC
|
||||||
mv -f wgcf-profile.conf /etc/wireguard >/dev/null 2>&1
|
mv -f wgcf-profile.conf /etc/wireguard >/dev/null 2>&1
|
||||||
mv -f wgcf-account.toml /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
|
systemctl enable wg-quick@wgcf >/dev/null 2>&1
|
||||||
CheckWARP && ShowWGCF && WGCFmenu && lncf
|
CheckWARP && ShowWGCF && WGCFmenu && lncf
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue