Skip to content

Commit 88b9824

Browse files
authored
Update x-ui-pro.sh
- Fix nginx server_name
1 parent ca97879 commit 88b9824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-ui-pro.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
#################### x-ui-pro v2.0.1 @ github.com/GFW4Fun ##############################################
2+
#################### x-ui-pro v2.0.2 @ github.com/GFW4Fun ##############################################
33
[[ $EUID -ne 0 ]] && echo "not root!" && sudo su -
44
##############################INFO######################################################################
55
msg_ok() { echo -e "\e[1;42m $1 \e[0m";}
@@ -132,7 +132,7 @@ fi
132132
cat > "/etc/nginx/sites-available/$MainDomain" << EOF
133133
server {
134134
server_tokens off;
135-
server_name *.$MainDomain $MainDomain;
135+
server_name $MainDomain *.$MainDomain;
136136
listen 80;
137137
listen 443 ssl http2;
138138
listen [::]:80;

0 commit comments

Comments
 (0)