Skip to content

Commit d39f22e

Browse files
authored
Update x-ui-pro.sh
1 parent 53d97c6 commit d39f22e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

x-ui-pro.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
#################### x-ui-pro v11.0.3 @ github.com/GFW4Fun ##############################################
2+
#################### x-ui-pro v11.0.4 @ github.com/GFW4Fun ##############################################
33
msg_ok() { echo -e "\e[1;42m $1 \e[0m";}
44
msg_err() { echo -e "\e[1;41m $1 \e[0m";}
55
msg_inf() { echo -e "\e[1;34m$1\e[0m";}
@@ -468,11 +468,11 @@ if systemctl is-active --quiet x-ui || [ -e /etc/systemd/system/x-ui.service ];
468468
echo "Server: ${IP4} | $(uname -n) | $(echo "${IPInfo}" | jq -r '.org, .country' | paste -sd' | ')"
469469
msg_inf "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
470470
echo "XrayUI Panel [IP:PORT]"
471-
[[ -n $IP4 ]] && [[ "$IP4" =~ $IP4_REGEX ]] && msg_inf "IPv4: http://$IP4:$PORT$RNDSTR"
472-
[[ -n $IP6 ]] && [[ "$IP6" =~ $IP6_REGEX ]] && msg_inf "IPv6: http://[$IP6]:$PORT$RNDSTR"
471+
[[ -n "$IP4" && "$IP4" =~ $IP4_REGEX ]] && msg_inf "IPv4: http://$IP4:$PORT$RNDSTR"
472+
[[ -n "$IP6" && "$IP6" =~ $IP6_REGEX ]] && msg_inf "IPv6: http://[$IP6]:$PORT$RNDSTR"
473473
echo -e "\nV2rayA Panel [IP:PORT]"
474-
[[ -n $IP4 ]] && [[ "$IP4" =~ $IP4_REGEX ]] && msg_inf "IPv4: http://$IP4:2017/$RNDSTR2/"
475-
[[ -n $IP6 ]] && [[ "$IP6" =~ $IP6_REGEX ]] && msg_inf "IPv6: http://[$IP6]:2017/$RNDSTR2/"
474+
[[ -n "$IP4" && "$IP4" =~ $IP4_REGEX ]] && msg_inf "IPv4: http://$IP4:2017/$RNDSTR2/"
475+
[[ -n "$IP6" && "$IP6" =~ $IP6_REGEX ]] && msg_inf "IPv6: http://[$IP6]:2017/$RNDSTR2/"
476476
msg_inf "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
477477
sudo sh -c "echo -n '${XUIUSER}:' >> /etc/nginx/.htpasswd && openssl passwd -apr1 '${XUIPASS}' >> /etc/nginx/.htpasswd"
478478
echo -e "Admin Panel [SSL]:\n"

0 commit comments

Comments
 (0)