File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # ################### x-ui-pro v11.0.3 @ github.com/GFW4Fun ##############################################
2
+ # ################### x-ui-pro v11.0.4 @ github.com/GFW4Fun ##############################################
3
3
msg_ok () { echo -e " \e[1;42m $1 \e[0m" ; }
4
4
msg_err () { echo -e " \e[1;41m $1 \e[0m" ; }
5
5
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 ];
468
468
echo " Server: ${IP4} | $( uname -n) | $( echo " ${IPInfo} " | jq -r ' .org, .country' | paste -sd' | ' ) "
469
469
msg_inf " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
470
470
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 "
473
473
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 /"
476
476
msg_inf " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
477
477
sudo sh -c " echo -n '${XUIUSER} :' >> /etc/nginx/.htpasswd && openssl passwd -apr1 '${XUIPASS} ' >> /etc/nginx/.htpasswd"
478
478
echo -e " Admin Panel [SSL]:\n"
You can’t perform that action at this time.
0 commit comments