Update serv00.sh
This commit is contained in:
@@ -677,9 +677,9 @@ vl_link="vless://$UUID@$IP:$vless_port?encryption=none&flow=xtls-rprx-vision&sec
|
||||
echo "$vl_link" > jh.txt
|
||||
vmws_link="vmess://$(echo "{ \"v\": \"2\", \"ps\": \"$snb-vmess-ws-$USERNAME\", \"add\": \"$IP\", \"port\": \"$vmess_port\", \"id\": \"$UUID\", \"aid\": \"0\", \"scy\": \"auto\", \"net\": \"ws\", \"type\": \"none\", \"host\": \"\", \"path\": \"/$UUID-vm?ed=2048\", \"tls\": \"\", \"sni\": \"\", \"alpn\": \"\", \"fp\": \"\"}" | base64 -w0)"
|
||||
echo "$vmws_link" >> jh.txt
|
||||
vmatls_link="vmess://$(echo "{ \"v\": \"2\", \"ps\": \"$snb-vmess-ws-tls-argo-$USERNAME\", \"add\": \"icook.hk\", \"port\": \"8443\", \"id\": \"$UUID\", \"aid\": \"0\", \"scy\": \"auto\", \"net\": \"ws\", \"type\": \"none\", \"host\": \"$argodomain\", \"path\": \"/$UUID-vm?ed=2048\", \"tls\": \"tls\", \"sni\": \"$argodomain\", \"alpn\": \"\", \"fp\": \"\"}" | base64 -w0)"
|
||||
vmatls_link="vmess://$(echo "{ \"v\": \"2\", \"ps\": \"$snb-vmess-ws-tls-argo-$USERNAME\", \"add\": \"www.visa.com.hk\", \"port\": \"8443\", \"id\": \"$UUID\", \"aid\": \"0\", \"scy\": \"auto\", \"net\": \"ws\", \"type\": \"none\", \"host\": \"$argodomain\", \"path\": \"/$UUID-vm?ed=2048\", \"tls\": \"tls\", \"sni\": \"$argodomain\", \"alpn\": \"\", \"fp\": \"\"}" | base64 -w0)"
|
||||
echo "$vmatls_link" >> jh.txt
|
||||
vma_link="vmess://$(echo "{ \"v\": \"2\", \"ps\": \"$snb-vmess-ws-argo-$USERNAME\", \"add\": \"icook.hk\", \"port\": \"8880\", \"id\": \"$UUID\", \"aid\": \"0\", \"scy\": \"auto\", \"net\": \"ws\", \"type\": \"none\", \"host\": \"$argodomain\", \"path\": \"/$UUID-vm?ed=2048\", \"tls\": \"\"}" | base64 -w0)"
|
||||
vma_link="vmess://$(echo "{ \"v\": \"2\", \"ps\": \"$snb-vmess-ws-argo-$USERNAME\", \"add\": \"www.visa.com.hk\", \"port\": \"8880\", \"id\": \"$UUID\", \"aid\": \"0\", \"scy\": \"auto\", \"net\": \"ws\", \"type\": \"none\", \"host\": \"$argodomain\", \"path\": \"/$UUID-vm?ed=2048\", \"tls\": \"\"}" | base64 -w0)"
|
||||
echo "$vma_link" >> jh.txt
|
||||
hy2_link="hysteria2://$UUID@$IP:$hy2_port?security=tls&sni=www.bing.com&alpn=h3&insecure=1#$snb-hy2-$USERNAME"
|
||||
echo "$hy2_link" >> jh.txt
|
||||
@@ -858,7 +858,7 @@ cat > sing_box.json <<EOF
|
||||
}
|
||||
},
|
||||
{
|
||||
"server": "icook.hk",
|
||||
"server": "www.visa.com.hk",
|
||||
"server_port": 8443,
|
||||
"tag": "vmess-tls-argo-$snb-$USERNAME",
|
||||
"tls": {
|
||||
@@ -885,7 +885,7 @@ cat > sing_box.json <<EOF
|
||||
"uuid": "$UUID"
|
||||
},
|
||||
{
|
||||
"server": "icook.hk",
|
||||
"server": "www.visa.com.hk",
|
||||
"server_port": 8880,
|
||||
"tag": "vmess-argo-$snb-$USERNAME",
|
||||
"tls": {
|
||||
@@ -1082,7 +1082,7 @@ proxies:
|
||||
|
||||
- name: vmess-tls-argo-$snb-$USERNAME
|
||||
type: vmess
|
||||
server: icook.hk
|
||||
server: www.visa.com.hk
|
||||
port: 8443
|
||||
uuid: $UUID
|
||||
alterId: 0
|
||||
@@ -1098,7 +1098,7 @@ proxies:
|
||||
|
||||
- name: vmess-argo-$snb-$USERNAME
|
||||
type: vmess
|
||||
server: icook.hk
|
||||
server: www.visa.com.hk
|
||||
port: 8880
|
||||
uuid: $UUID
|
||||
alterId: 0
|
||||
@@ -1547,12 +1547,18 @@ fi
|
||||
if [ -f "$WORKDIR/boot.log" ]; then
|
||||
argosl=$(cat "$WORKDIR/boot.log" 2>/dev/null | grep -a trycloudflare.com | awk 'NR==2{print}' | awk -F// '{print $2}' | awk '{print $1}')
|
||||
checkhttp=$(curl -o /dev/null -s -w "%{http_code}\n" "https://$argosl")
|
||||
[[ "$checkhttp" == 404 || "$checkhttp" == 502 ]] && check="域名有效" || check="临时域名暂时无效,如已启用保活,后续会自动恢复有效"
|
||||
[[ "$checkhttp" == 404 ]] && check="域名有效" || check="临时域名暂时无效,如已启用保活,后续会自动恢复有效"
|
||||
green "Argo临时域名:$argosl $check"
|
||||
else
|
||||
argogd=$(cat $WORKDIR/ARGO_DOMAIN.log 2>/dev/null)
|
||||
checkhttp=$(curl --max-time 2 -o /dev/null -s -w "%{http_code}\n" "https://$argogd")
|
||||
[[ "$checkhttp" == 404 || "$checkhttp" == 502 ]] && check="域名有效" || check="固定域名无效,请检查域名、端口、密钥token是否输入有误"
|
||||
if [[ "$checkhttp" == 404 ]]; then
|
||||
check="域名有效"
|
||||
elif [[ "$argogd" =~ ddns-ip|cloudns ]]; then
|
||||
check="域名可能有效,请自行检测argo节点是否可用"
|
||||
else
|
||||
check="固定域名无效,请检查域名、端口、密钥token是否输入有误"
|
||||
fi
|
||||
green "Argo固定域名:$argogd $check"
|
||||
fi
|
||||
if [ "$hona" = "serv00" ]; then
|
||||
|
||||
Reference in New Issue
Block a user