|
|
|
|
@ -1562,7 +1562,7 @@ proxy(){ |
|
|
|
|
mkdir -p /etc/wireguard/ >/dev/null 2>&1 |
|
|
|
|
if [[ $CLIENT = 0 ]]; then green " ${T[${L}83]} " |
|
|
|
|
if [[ $SYSTEM = CentOS ]]; then |
|
|
|
|
rpm -ivh http://pkg.cloudflareclient.com/cloudflare-release-el8.rpm >/dev/null 2>&1 |
|
|
|
|
rpm -ivh https://pkg.cloudflareclient.com/cloudflare-release-el8.rpm >/dev/null 2>&1 |
|
|
|
|
# CentOS 7,需要用 Cloudflare CentOS 8 的库以安装 Client,并在线编译升级 C 运行库 Glibc 2.28 |
|
|
|
|
if [[ $(expr "$SYS" : '.*\s\([0-9]\{1,\}\)\.*') = 7 && ! $(strings /lib64/libc.so.6 ) =~ GLIBC_2.28 ]]; then |
|
|
|
|
{ wget -O /usr/bin/make https://github.com/fscarmen/warp/releases/download/Glibc/make |
|
|
|
|
@ -1589,7 +1589,6 @@ proxy(){ |
|
|
|
|
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $CODENAME main" | tee /etc/apt/sources.list.d/cloudflare-client.list |
|
|
|
|
${PACKAGE_UPDATE[int]}; ${PACKAGE_INSTALL[int]} cloudflare-warp |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
[[ $(systemctl is-active warp-svc) != active ]] && ( systemctl start warp-svc; sleep 2 ) |
|
|
|
|
settings |
|
|
|
|
|
|
|
|
|
|