mirror of https://gitlab.com/rwkgyg/CFwarp.git
Update CFwarp1.sh
This commit is contained in:
parent
8d295718e8
commit
1de936677f
|
@ -99,8 +99,8 @@ c5="sed -i 's/1.1.1.1/8.8.8.8,2001:4860:4860::8888/g' /etc/wireguard/wgcf.conf"
|
||||||
c6="sed -i 's/1.1.1.1/2001:4860:4860::8888,8.8.8.8/g' /etc/wireguard/wgcf.conf"
|
c6="sed -i 's/1.1.1.1/2001:4860:4860::8888,8.8.8.8/g' /etc/wireguard/wgcf.conf"
|
||||||
|
|
||||||
v4v6(){
|
v4v6(){
|
||||||
v6=$(curl -s6m5 ip.p3terx.com -k | sed -n 1p)
|
v6=$(curl -s6m6 ip.p3terx.com -k | sed -n 1p)
|
||||||
v4=$(curl -s4m5 ip.p3terx.com -k | sed -n 1p)
|
v4=$(curl -s4m6 ip.p3terx.com -k | sed -n 1p)
|
||||||
}
|
}
|
||||||
|
|
||||||
checkwgcf(){
|
checkwgcf(){
|
||||||
|
@ -210,9 +210,9 @@ blue "\nWireguard客户端相关设置说明请关注甬哥博客"
|
||||||
green "\n根据网络环境,选择Wireguard代理节点的Endpoint端点"
|
green "\n根据网络环境,选择Wireguard代理节点的Endpoint端点"
|
||||||
readp "1. 使用IPV4端点 (支持v4或v6+v4网络环境,回车默认)\n2. 使用IPV6端点 (仅支持v6+v4网络环境)\n请选择:" IPet
|
readp "1. 使用IPV4端点 (支持v4或v6+v4网络环境,回车默认)\n2. 使用IPV6端点 (仅支持v6+v4网络环境)\n请选择:" IPet
|
||||||
if [ -z "${IPet}" ] || [ $IPet == "1" ];then
|
if [ -z "${IPet}" ] || [ $IPet == "1" ];then
|
||||||
endip=162.159.195.10
|
endip=162.159.193.10
|
||||||
elif [ $IPet == "2" ];then
|
elif [ $IPet == "2" ];then
|
||||||
endip=[2606:4700:d1::a29f:8964]
|
endip=[2606:4700:d0::]
|
||||||
else
|
else
|
||||||
red "输入错误,请重新选择" && WGproxy
|
red "输入错误,请重新选择" && WGproxy
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue