mirror of https://gitlab.com/rwkgyg/CFwarp.git
Update 661.sh
This commit is contained in:
parent
b361dad8c7
commit
a0fdc1129a
12
661.sh
12
661.sh
|
@ -234,9 +234,15 @@ cd /root/warpip
|
||||||
wait
|
wait
|
||||||
cd
|
cd
|
||||||
fi
|
fi
|
||||||
endpoint=`sed -n '2p' /root/warpip/result.csv | awk -F ',' '{print $1}'`
|
endpoint=`sed -n '2p' /root/warpip/result.csv | awk -F ',' '{print $1}' | tr -d '[]'`
|
||||||
opgo6=`grep -oE '\[[0-9a-fA-F:]+\]:[0-9]+' /usr/local/bin/warp.conf 2>/dev/null`
|
#opgo6=`grep -oE '\[[0-9a-fA-F:]+\]:[0-9]+' /usr/local/bin/warp.conf 2>/dev/null`
|
||||||
opcf6=`grep -oE '\[[0-9a-fA-F:]+\]:[0-9]+' /etc/wireguard/wgcf.conf 2>/dev/null`
|
|
||||||
|
opgo6=`grep -oE '\[[0-9a-fA-F:]+\]:[0-9]+' /usr/local/bin/warp.conf 2>/dev/null | tr -d '[]'`
|
||||||
|
|
||||||
|
#opcf6=`grep -oE '\[[0-9a-fA-F:]+\]:[0-9]+' /etc/wireguard/wgcf.conf 2>/dev/null`
|
||||||
|
|
||||||
|
opcf6=`grep -oE '\[[0-9a-fA-F:]+\]:[0-9]+' /etc/wireguard/wgcf.conf 2>/dev/null | tr -d '[]'`
|
||||||
|
|
||||||
opgo4=`grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+' /usr/local/bin/warp.conf 2>/dev/null`
|
opgo4=`grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+' /usr/local/bin/warp.conf 2>/dev/null`
|
||||||
opcf4=`grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+' /etc/wireguard/wgcf.conf 2>/dev/null`
|
opcf4=`grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+' /etc/wireguard/wgcf.conf 2>/dev/null`
|
||||||
sed -i "s/$opgo4/$endpoint/g" /usr/local/bin/warp.conf 2>/dev/null
|
sed -i "s/$opgo4/$endpoint/g" /usr/local/bin/warp.conf 2>/dev/null
|
||||||
|
|
Loading…
Reference in New Issue