Update sb.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2026-03-26 14:28:17 +08:00
committed by GitHub
parent cf6d596d94
commit a2cd26cff7
+5 -3
View File
@@ -4034,15 +4034,17 @@ echo -e "🚀【 Tuic-v5 】${yellow}端口:$tu5_port 证书形式:$tu5_z
if [[ "$sbnh" != "1.10" ]]; then if [[ "$sbnh" != "1.10" ]]; then
echo -e "🚀【 Anytls 】${yellow}端口:$an_port 证书形式:$an_zs${plain}" echo -e "🚀【 Anytls 】${yellow}端口:$an_port 证书形式:$an_zs${plain}"
fi fi
if ps -ef 2>/dev/null | grep "[h]ttpd -f -p" >/dev/null; then if [ -s /etc/s-box/subport.log ]; then
showsubport=$(cat /etc/s-box/subport.log)
if ps -ef 2>/dev/null | grep "$showsubport" | grep -v grep >/dev/null; then
showsubtoken=$(cat /etc/s-box/subtoken.log 2>/dev/null) showsubtoken=$(cat /etc/s-box/subtoken.log 2>/dev/null)
showsubport=$(cat /etc/s-box/subport.log 2>/dev/null) subip=$(cat /etc/s-box/server_ip.log 2>/dev/null)
subip=$(cat /etc/s-box/server_ip.log)
suburl="$subip:$showsubport/$showsubtoken" suburl="$subip:$showsubport/$showsubtoken"
echo "Clash/Mihomo本地IP订阅地址:http://$suburl/clmi.yaml" echo "Clash/Mihomo本地IP订阅地址:http://$suburl/clmi.yaml"
echo "Sing-box本地IP订阅地址:http://$suburl/sbox.json" echo "Sing-box本地IP订阅地址:http://$suburl/sbox.json"
echo "聚合协议本地IP订阅地址:http://$suburl/jhsub.txt" echo "聚合协议本地IP订阅地址:http://$suburl/jhsub.txt"
fi fi
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}"