You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: src/v2script.sh
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,8 @@ sync_nodes() {
135
135
fi
136
136
137
137
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"
139
140
local wssPath="$(read_json /usr/local/etc/v2ray/config.json '.inbounds[1].streamSettings.wsSettings.path'| tr -d '/')"
140
141
local uuid_wss="$(read_json /usr/local/etc/v2ray/config.json '.inbounds[1].settings.clients[0].id')"
141
142
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() {
389
390
${sudoCmd} systemctl daemon-reload
390
391
391
392
colorEcho ${GREEN}"设置CDN成功!"
392
-
local cfUrl="www.digitalocean.com"
393
+
#local cfUrl="www.digitalocean.com"
394
+
local cfUrl="amp.cloudflare.com"
393
395
local uuid_wss="$(read_json /usr/local/etc/v2ray/config.json '.inbounds[1].settings.clients[0].id')"
394
396
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')"
395
397
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\"}"
0 commit comments