Fix bugs
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
* 建议开启 fail2ban ,在脚本中安装即可。
|
||||
* 使用来自 [@DuckSoft](https://github.com/DuckSoft) 的分享链接[提案](https://github.com/XTLS/Xray-core/issues/91) (beta),支持 Qv2ray、V2rayN、V2rayNG。
|
||||
* 使用来自 [XTLS](https://github.com/XTLS/Xray-core/issues/158) 项目的提案,遵循 [UUIDv5](https://tools.ietf.org/html/rfc4122#section-4.3) 标准,可以将自定义字符串映射至 VLESS UUID 。
|
||||
* Reality 安装说明:[搭建 Xray Reality 协议服务器](https://hey.run/archives/da-jian-xray-reality-xie-yi-fu-wu-qi)。
|
||||
* Reality 协议的风险:[Xray Reality 协议的风险](https://hey.run/archives/reality-xie-yi-de-feng-xian)。
|
||||
* 利用 Reality 协议加速服务器:[利用 Reality 协议“漏洞”加速服务器](https://hey.run/archives/li-yong-reality-xie-yi-lou-dong-jia-su-fu-wu-qi)。
|
||||
* 添加负载均衡配置,教程:[XRay进阶玩法 – 搭建后端服务器负载均衡](https://hey.run/archives/xrayjin-jie-wan-fa---da-jian-hou-duan-fu-wu-qi-fu-zai-jun-heng)。
|
||||
* 添加 gRPC 协议的支持,具体可见:[Xray进阶玩法 – 使用gRPC协议](https://hey.run/archives/xrayjin-jie-wan-fa---shi-yong-grpcxie-yi)。
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"port": 9443,
|
||||
"listen": "0.0.0.0",
|
||||
"protocol": "VLESS",
|
||||
"tag": "VLESS-XTLS-in",
|
||||
"tag": "VLESS-Reality-in",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 定义当前版本号
|
||||
mf_SCRIPT_VERSION="1.0.7"
|
||||
mf_SCRIPT_VERSION="1.0.8"
|
||||
|
||||
mf_main_menu() {
|
||||
check_system
|
||||
@@ -236,7 +236,7 @@ mf_check_for_updates() {
|
||||
if [ $? -eq 0 ]; then
|
||||
chmod +x "${idleleo_dir}/fail2ban_manager.sh"
|
||||
log_echo "${OK} ${Green} 下载完成,正在重新运行脚本... ${Font}"
|
||||
source "${idleleo}" --set-fail2ban
|
||||
bash "${idleleo}" --set-fail2ban
|
||||
else
|
||||
echo -e "\n"
|
||||
log_echo "${Error} ${RedBG} 下载失败,请手动下载并安装新版本 ${Font}"
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 定义当前版本号
|
||||
fm_SCRIPT_VERSION="1.0.7"
|
||||
fm_SCRIPT_VERSION="1.0.8"
|
||||
|
||||
# 检查是否提供了扩展名参数
|
||||
if [ -z "$1" ]; then
|
||||
@@ -252,7 +252,7 @@ fm_check_for_updates() {
|
||||
if [ $? -eq 0 ]; then
|
||||
chmod +x "${idleleo_dir}/file_manager.sh"
|
||||
log_echo "${OK} ${Green} 下载完成,正在重新运行脚本... ${Font}"
|
||||
source "${idleleo}" --add-servernames
|
||||
bash "${idleleo}" --add-servernames
|
||||
else
|
||||
echo -e "\n"
|
||||
log_echo "${Error} ${RedBG} 下载失败,请手动下载并安装新版本 ${Font}"
|
||||
|
||||
+14
-9
@@ -9,7 +9,7 @@ cd "$(
|
||||
pwd
|
||||
)" || exit
|
||||
|
||||
idleleo=$0
|
||||
idleleo=$(readlink -f "${BASH_SOURCE[0]}")
|
||||
|
||||
#=====================================================
|
||||
# System Request: Debian 9+/Ubuntu 18.04+/Centos 7+
|
||||
@@ -37,7 +37,7 @@ OK="${Green}[OK]${Font}"
|
||||
Error="${RedW}[错误]${Font}"
|
||||
Warning="${RedW}[警告]${Font}"
|
||||
|
||||
shell_version="2.2.3"
|
||||
shell_version="2.2.4"
|
||||
shell_mode="未安装"
|
||||
tls_mode="None"
|
||||
ws_grpc_mode="None"
|
||||
@@ -812,8 +812,10 @@ modify_nginx_origin_conf() {
|
||||
}
|
||||
|
||||
modify_nginx_port() {
|
||||
sed -i "s/^\( *\).*ssl http2 quic reuseport;$/\1listen ${port} ssl http2 quic reuseport;/" ${nginx_conf}
|
||||
sed -i "3s/^\( *\).*ssl http2 quic reuseport;$/\1listen [::]:${port} ssl http2 quic reuseport;/" ${nginx_conf}
|
||||
sed -i "2s/^\( *\).*ssl reuseport;$/\1listen ${port} ssl reuseport;/" ${nginx_conf}
|
||||
sed -i "3s/^\( *\).*ssl reuseport;$/\1listen [::]:${port} ssl reuseport;/" ${nginx_conf}
|
||||
sed -i "4s/^\( *\).*quic reuseport;$/\1listen ${port} quic reuseport;/" ${nginx_conf}
|
||||
sed -i "5s/^\( *\).*quic reuseport;$/\1listen [::]:${port} quic reuseport;/" ${nginx_conf}
|
||||
judge "Xray port 修改"
|
||||
[[ -f "${xray_qr_config_file}" ]] && sed -i "s/^\( *\)\"port\".*/\1\"port\": \"${port}\",/" ${xray_qr_config_file}
|
||||
log_echo "${Green} 端口号: ${port} ${Font}"
|
||||
@@ -1591,9 +1593,12 @@ nginx_conf_add() {
|
||||
touch ${nginx_conf}
|
||||
cat >${nginx_conf} <<EOF
|
||||
server {
|
||||
listen 443 ssl http2 quic reuseport;
|
||||
listen [::]:443 ssl http2 quic reuseport;
|
||||
listen 443 ssl reuseport;
|
||||
listen [::]:443 ssl reuseport;
|
||||
listen 443 quic reuseport;
|
||||
listen [::]:443 quic reuseport;
|
||||
|
||||
http2 on;
|
||||
set_real_ip_from 127.0.0.1;
|
||||
real_ip_header X-Forwarded-For;
|
||||
real_ip_recursive on;
|
||||
@@ -2323,9 +2328,9 @@ tls_type() {
|
||||
log_echo "${GreenBG} 建议选择 TLS1.3 only (安全模式) ${Font}"
|
||||
echo -e "1: TLS1.2 and TLS1.3 (兼容模式)"
|
||||
echo -e "${Red}2${Font}: TLS1.3 only (安全模式)"
|
||||
local choose_network
|
||||
read_optimize "请输入: " "choose_network" 2 1 2 "请输入有效的数字"
|
||||
if [[ $tls_version == 1 ]]; then
|
||||
local choose_tls
|
||||
read_optimize "请输入: " "choose_tls" 2 1 2 "请输入有效的数字"
|
||||
if [[ ${choose_tls} == 1 ]]; then
|
||||
# if [[ ${tls_mode} == "TLS" ]]; then
|
||||
# sed -i "s/^\( *\)ssl_protocols\( *\).*/\1ssl_protocols\2TLSv1.2 TLSv1.3;/" $nginx_conf
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user