docs: clarify interactive prompts and output notices for HAProxy L4 routing
Main / build (push) Waiting to run
Main / build (push) Waiting to run
This commit is contained in:
+5
-13
@@ -413,12 +413,8 @@ ask() {
|
||||
}
|
||||
if [[ $REPLY == 443 && $is_caddy && ${is_new_protocol,,} =~ "reality" ]]; then
|
||||
msg "\n检测到你的系统已启用 Caddy。"
|
||||
msg "你可以选择启用 REALITY 回落分流功能,将非科学上网流量转发给本地 Caddy (4443 端口)。"
|
||||
if [[ $(is_test port_used 443) ]]; then
|
||||
msg "这需要自动或手动将 Caddyfile 中的默认 https 端口修改为 4443 并重启 Caddy。"
|
||||
else
|
||||
msg "检测到 443 端口当前空闲(可能是已转移到了 4443 端口)。"
|
||||
fi
|
||||
msg "你可以选择启用 REALITY 回落分流功能,将非代理流量转发给本地 Caddy。"
|
||||
msg "这会自动安装 HAProxy 监听 443 端口进行四层分流,并将 Caddy 的 https 端口自动调整为 4443。"
|
||||
echo -ne "是否启用 Caddy 回落分流?(y/n):"
|
||||
read is_enable_fallback
|
||||
if [[ $is_enable_fallback =~ ^[Yy]$ ]]; then
|
||||
@@ -1109,12 +1105,8 @@ add() {
|
||||
}
|
||||
if [[ $is_use_port == 443 && $is_caddy && ${is_new_protocol,,} =~ "reality" ]]; then
|
||||
msg "\n检测到你的系统已启用 Caddy。"
|
||||
msg "你可以选择启用 REALITY 回落分流功能,将非科学上网流量转发给本地 Caddy (4443 端口)。"
|
||||
if [[ $(is_test port_used 443) ]]; then
|
||||
msg "这需要自动或手动将 Caddyfile 中的默认 https 端口修改为 4443 并重启 Caddy。"
|
||||
else
|
||||
msg "检测到 443 端口当前空闲(可能是已转移到了 4443 端口)。"
|
||||
fi
|
||||
msg "你可以选择启用 REALITY 回落分流功能,将非代理流量转发给本地 Caddy。"
|
||||
msg "这会自动安装 HAProxy 监听 443 端口进行四层分流,并将 Caddy 的 https 端口自动调整为 4443。"
|
||||
echo -ne "是否启用 Caddy 回落分流?(y/n):"
|
||||
read is_enable_fallback
|
||||
if [[ $is_enable_fallback =~ ^[Yy]$ ]]; then
|
||||
@@ -1702,7 +1694,7 @@ info() {
|
||||
_green "检测到启用了 Caddy 回落分流,脚本已自动为你调整了 Caddy 配置文件:"
|
||||
msg "1. 已自动将你的 ${yellow}/etc/caddy/Caddyfile${none} 中的默认 https 端口修改为 ${green}4443${none}。"
|
||||
msg "2. 原配置文件备份已保存至 ${yellow}${is_caddyfile}.bak${none}。"
|
||||
msg "3. Caddy 和 sing-box 已自动重启,现在 443 端口由 sing-box 监听,普通流量会自动分流回落至 Caddy。"
|
||||
msg "3. Caddy、sing-box 和 HAProxy 已自动重启,现在 443 端口由 HAProxy 监听并做四层分流,普通流量回落至 Caddy,代理流量转至 sing-box。"
|
||||
msg "---------------------------------------------------"
|
||||
fi
|
||||
footer_msg
|
||||
|
||||
Reference in New Issue
Block a user