Update sb.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2026-03-26 10:57:43 +08:00
committed by GitHub
parent 957f8aef6f
commit 0996bfb716
+8 -8
View File
@@ -1102,8 +1102,8 @@ echo
resvmess(){ resvmess(){
if [[ "$tls" = "false" ]]; then if [[ "$tls" = "false" ]]; then
argopid
if ps -p "$ls" >/dev/null 2>&1; then if ps -ef 2>/dev/null | grep -q '[c]loudflared.*url'; then
echo echo
white "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" white "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
red "🚀【 vmess-ws(tls)+Argo 】临时节点信息如下(可选择3-8-3,自定义CDN优选地址)" && sleep 2 red "🚀【 vmess-ws(tls)+Argo 】临时节点信息如下(可选择3-8-3,自定义CDN优选地址)" && sleep 2
@@ -1597,8 +1597,8 @@ EOF
} }
tls=$(sed 's://.*::g' /etc/s-box/sb.json | jq -r '.inbounds[1].tls.enabled') tls=$(sed 's://.*::g' /etc/s-box/sb.json | jq -r '.inbounds[1].tls.enabled')
argopid
if ps -ef 2>/dev/null | grep -q '[c]loudflared.*run' && ps -p "$ls" >/dev/null 2>&1 && [ "$tls" = "false" ]; then if ps -ef 2>/dev/null | grep -q '[c]loudflared.*run' && ps -ef 2>/dev/null | grep -q '[c]loudflared.*url' && [ "$tls" = "false" ]; then
cat > /etc/s-box/sbox.json <<EOF cat > /etc/s-box/sbox.json <<EOF
$(sball) $(sball)
$(sbany2) $(sbany2)
@@ -1877,7 +1877,7 @@ rules:
- MATCH,🌍选择代理节点 - MATCH,🌍选择代理节点
EOF EOF
elif ! ps -ef 2>/dev/null | grep -q '[c]loudflared.*run' && ps -p "$ls" >/dev/null 2>&1 && [ "$tls" = "false" ]; then elif ! ps -ef 2>/dev/null | grep -q '[c]loudflared.*run' && ps -ef 2>/dev/null | grep -q '[c]loudflared.*url' && [ "$tls" = "false" ]; then
cat > /etc/s-box/sbox.json <<EOF cat > /etc/s-box/sbox.json <<EOF
$(sball) $(sball)
$(sbany2) $(sbany2)
@@ -2066,7 +2066,7 @@ rules:
- MATCH,🌍选择代理节点 - MATCH,🌍选择代理节点
EOF EOF
elif ps -ef 2>/dev/null | grep -q '[c]loudflared.*run' && ! ps -p "$ls" >/dev/null 2>&1 && [ "$tls" = "false" ]; then elif ps -ef 2>/dev/null | grep -q '[c]loudflared.*run' && ! ps -ef 2>/dev/null | grep -q '[c]loudflared.*url' && [ "$tls" = "false" ]; then
cat > /etc/s-box/sbox.json <<EOF cat > /etc/s-box/sbox.json <<EOF
$(sball) $(sball)
$(sbany2) $(sbany2)
@@ -4015,7 +4015,7 @@ sbymfl
tls=$(sed 's://.*::g' /etc/s-box/sb.json | jq -r '.inbounds[1].tls.enabled') tls=$(sed 's://.*::g' /etc/s-box/sb.json | jq -r '.inbounds[1].tls.enabled')
if [[ "$tls" = "false" ]]; then if [[ "$tls" = "false" ]]; then
argopid argopid
if ps -ef 2>/dev/null | grep -q '[c]loudflared.*run' || ps -p "$ls" >/dev/null 2>&1; then if ps -ef 2>/dev/null | grep -q '[c]loudflared.*run' || ps -ef 2>/dev/null | grep -q '[c]loudflared.*url'; then
vm_zs="TLS关闭" vm_zs="TLS关闭"
argoym="已开启" argoym="已开启"
else else
@@ -4056,7 +4056,7 @@ fi
if [ "$argoym" = "已开启" ]; then if [ "$argoym" = "已开启" ]; then
#echo -e "Vmess-UUID${yellow}$(sed 's://.*::g' /etc/s-box/sb.json | jq -r '.inbounds[0].users[0].uuid')${plain}" #echo -e "Vmess-UUID${yellow}$(sed 's://.*::g' /etc/s-box/sb.json | jq -r '.inbounds[0].users[0].uuid')${plain}"
#echo -e "Vmess-Path${yellow}$(sed 's://.*::g' /etc/s-box/sb.json | jq -r '.inbounds[1].transport.path')${plain}" #echo -e "Vmess-Path${yellow}$(sed 's://.*::g' /etc/s-box/sb.json | jq -r '.inbounds[1].transport.path')${plain}"
if ps -p "$ls" >/dev/null 2>&1; then if ps -ef 2>/dev/null | grep -q '[c]loudflared.*url'; then
echo -e "Argo临时域名:${yellow}$(cat /etc/s-box/argo.log 2>/dev/null | grep -a trycloudflare.com | awk 'NR==2{print}' | awk -F// '{print $2}' | awk '{print $1}')${plain}" echo -e "Argo临时域名:${yellow}$(cat /etc/s-box/argo.log 2>/dev/null | grep -a trycloudflare.com | awk 'NR==2{print}' | awk -F// '{print $2}' | awk '{print $1}')${plain}"
fi fi
if ps -ef 2>/dev/null | grep -q '[c]loudflared.*run'; then if ps -ef 2>/dev/null | grep -q '[c]loudflared.*run'; then