Skip to content

Commit a956d9f

Browse files
authored
Update x-ui-pro.sh
1 parent 0eac1a6 commit a956d9f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

x-ui-pro.sh

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
#################### x-ui-pro v11.2.1 @ github.com/GFW4Fun ##############################################
2+
#################### x-ui-pro v11.3.0 @ github.com/GFW4Fun ##############################################
33
msg() { echo -e "\e[1;37;40m $1 \e[0m";}
44
msg_ok() { echo -e "\e[1;32;40m $1 \e[0m";}
55
msg_err() { echo -e "\e[1;31;40m $1 \e[0m";}
@@ -375,14 +375,8 @@ server {
375375
grpc_pass grpc://127.0.0.1:\$fwdport\$is_args\$args;
376376
break;
377377
}
378-
if (\$http_upgrade ~* "(WEBSOCKET|WS)") {
379-
proxy_pass http://127.0.0.1:\$fwdport\$is_args\$args;
380-
break;
381-
}
382-
if (\$request_method ~* ^(PUT|POST|GET)\$) {
383-
proxy_pass http://127.0.0.1:\$fwdport\$is_args\$args;
384-
break;
385-
}
378+
proxy_pass http://127.0.0.1:\$fwdport\$is_args\$args;
379+
break;
386380
}
387381
$NOPATH location / { try_files \$uri \$uri/ =404; }
388382
}

0 commit comments

Comments
 (0)