feat: optimize install UX, refine wording and CDN detection

- Add dynamic step tracking (STEP_NUM/TOTAL_STEPS) for installation.
- Implement calc_install_steps() to auto-calculate progress.
- Refine wording: replace "reality SNI" with "TLS SNI" for clarity.
- Simplify protocol selection prompts by removing fixed step labels.
- Enhance check_cdn() logic by testing actual script URL instead of root.
- Add localized strings (E/C[136-138]) for protocol menus.
- Improve CDN detection reliability with adjusted timeouts and methods.

feat: 优化安装交互、统一文案并增强 CDN 检测逻辑

- 新增安装步骤动态计数,实时显示安装进度。
- 引入 calc_install_steps() 根据协议选择动态计算总步骤。
- 规范化文案:将 "reality SNI" 统一修改为 "TLS SNI"。
- 精简协议选择交互,移除硬编码的固定步骤标识。
- 优化 check_cdn():改为检测脚本实际地址,提升判断准确性。
- 新增多语言文案 (E/C[136-138]) 并调整检测超时逻辑。
This commit is contained in:
fscarmen
2026-03-30 13:28:07 +00:00
parent 87bb449303
commit 2b00bac908
5 changed files with 111 additions and 36 deletions
+1 -3
View File
@@ -632,8 +632,6 @@ EOF
"inbounds":[
{
"type":"vless",
"sniff":true,
"sniff_override_destination":true,
"tag":"${NODE_NAME} grpc-reality",
"listen":"::",
"listen_port":${PORT_GRPC_REALITY},
@@ -1444,4 +1442,4 @@ case "$ACTION" in
install
# 用 s6-overlay 作为 PID 1 承载守护
exec /init
esac
esac