Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit 5e83934

Browse files
committed
change cf default node
1 parent 8617dfe commit 5e83934

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/v2script.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ sync_nodes() {
135135
fi
136136

137137
if [[ "$(read_json /usr/local/etc/v2script/config.json '.v2ray.cloudflare')" == "true" ]]; then
138-
local cfUrl="www.digitalocean.com"
138+
#local cfUrl="www.digitalocean.com"
139+
local cfUrl="amp.cloudflare.com"
139140
local wssPath="$(read_json /usr/local/etc/v2ray/config.json '.inbounds[1].streamSettings.wsSettings.path' | tr -d '/')"
140141
local uuid_wss="$(read_json /usr/local/etc/v2ray/config.json '.inbounds[1].settings.clients[0].id')"
141142
local json_wss="{\"add\":\"${cfUrl}\",\"aid\":\"0\",\"host\":\"${V2_DOMAIN}\",\"id\":\"${uuid_wss}\",\"net\":\"ws\",\"path\":\"/${wssPath}\",\"port\":\"443\",\"ps\":\"${v2_remark} (CDN)\",\"tls\":\"tls\",\"type\":\"none\",\"v\":\"2\"}"
@@ -389,7 +390,8 @@ set_v2ray_wss() {
389390
${sudoCmd} systemctl daemon-reload
390391

391392
colorEcho ${GREEN} "设置CDN成功!"
392-
local cfUrl="www.digitalocean.com"
393+
#local cfUrl="www.digitalocean.com"
394+
local cfUrl="amp.cloudflare.com"
393395
local uuid_wss="$(read_json /usr/local/etc/v2ray/config.json '.inbounds[1].settings.clients[0].id')"
394396
local currentRemark="$(read_json /usr/local/etc/v2script/config.json '.sub.nodesList.tcp' | sed 's/^vmess:\/\///g' | base64 -d | jq --raw-output '.ps' | tr -d '\n')"
395397
local json_wss="{\"add\":\"${cfUrl}\",\"aid\":\"0\",\"host\":\"${sni}\",\"id\":\"${uuid_wss}\",\"net\":\"ws\",\"path\":\"/${wssPath}\",\"port\":\"443\",\"ps\":\"${currentRemark} (CDN)\",\"tls\":\"tls\",\"type\":\"none\",\"v\":\"2\"}"
@@ -523,7 +525,7 @@ install_v2ray() {
523525

524526
# install caddy
525527
${sudoCmd} docker rm $(${sudoCmd} docker stop $(${sudoCmd} docker ps -q --filter ancestor=abiosoft/caddy) 2>/dev/null) 2>/dev/null
526-
get_caddy
528+
#get_caddy
527529

528530
# prevent some bug
529531
${sudoCmd} rm -rf /usr/local/etc/ssl/caddy/*
@@ -678,10 +680,10 @@ install_trojan() {
678680
colorEcho ${BLUE} "Setting tls-shunt-proxy"
679681
set_proxy
680682

681-
get_caddy
683+
#get_caddy
682684

683685
colorEcho ${BLUE} "Setting caddy"
684-
set_caddy
686+
#set_caddy
685687

686688
colorEcho ${BLUE} "Building dummy web site"
687689
build_web

0 commit comments

Comments
 (0)