Update serv00keep.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-01-22 09:51:04 +08:00
committed by GitHub
parent dc00197167
commit d012a28246
-3
View File
@@ -118,7 +118,6 @@ if [[ -z "$UUID" ]]; then
UUID=$(uuidgen -r) UUID=$(uuidgen -r)
fi fi
if [[ -z "$vless_port" ]] || [[ -z "$vmess_port" ]] || [[ -z "$hy2_port" ]]; then if [[ -z "$vless_port" ]] || [[ -z "$vmess_port" ]] || [[ -z "$hy2_port" ]]; then
check_port () {
port_list=$(devil port list) port_list=$(devil port list)
tcp_ports=$(echo "$port_list" | grep -c "tcp") tcp_ports=$(echo "$port_list" | grep -c "tcp")
udp_ports=$(echo "$port_list" | grep -c "udp") udp_ports=$(echo "$port_list" | grep -c "udp")
@@ -186,11 +185,9 @@ else
echo "当前TCP端口: $tcp_port1$tcp_port2" echo "当前TCP端口: $tcp_port1$tcp_port2"
echo "当前UDP端口: $udp_port" echo "当前UDP端口: $udp_port"
fi fi
export vless_port=$tcp_port1 export vless_port=$tcp_port1
export vmess_port=$tcp_port2 export vmess_port=$tcp_port2
export hy2_port=$udp_port export hy2_port=$udp_port
}
fi fi
} }