mirror of
https://github.com/fscarmen/sing-box.git
synced 2026-08-10 17:55:16 +08:00
v1.3.12 feat: add Hysteria2 Realm support
* add Hysteria2 Realm configuration for servers and supported clients * export Realm options for Clash/Mihomo and sing-box clients * support WARP-assisted hole punching for strict NAT environments * allow enabling or disabling Hysteria2 Realm from `sb -d` * add non-interactive Realm and Realm WARP parameters * rename `PORT_HOPPING_RANGE` to `HY2_PORT_HOPPING_RANGE` to align Hysteria2 optional parameter prefixes feat: 增加 Hysteria2 Realm 支持 * 为服务端和支持的客户端增加 Hysteria2 Realm 配置 * 为 Clash/Mihomo 和 sing-box 客户端导出 Realm 参数 * 支持严格 NAT 环境下的 WARP 辅助打洞 * 支持通过 `sb -d` 开启或关闭 Hysteria2 Realm * 增加 Realm 和 Realm WARP 无交互参数 * 将 `PORT_HOPPING_RANGE` 改为 `HY2_PORT_HOPPING_RANGE`,统一 Hysteria2 可选参数名前缀
This commit is contained in:
+13
-1
@@ -71,7 +71,19 @@ ARGO_AUTH=''
|
||||
|
||||
# 端口跳跃范围,用于 Hysteria2 协议,格式为 起始端口:结束端口
|
||||
# Port hopping range for Hysteria2 protocol, format: start_port:end_port
|
||||
PORT_HOPPING_RANGE=''
|
||||
HY2_PORT_HOPPING_RANGE=''
|
||||
|
||||
|
||||
# 是否启用 Hysteria2 Realm / Enable Hysteria2 Realm: true or false
|
||||
# 适用于回国或者没有公网入口的机器;有公网入口时不建议使用
|
||||
# Useful for China-back routing or machines without public inbound access; not recommended when the server already has a public inbound IP/port
|
||||
HY2_REALM=''
|
||||
|
||||
# 是否启用 Hysteria2 Realm 的 WARP 辅助打洞 / Enable WARP-assisted hole punching for Hysteria2 Realm: true or false
|
||||
# 适用于 NAT 严格环境,如对称 NAT;设为 true 时会自动启用 HY2_REALM
|
||||
# Useful for strict NAT environments such as symmetric NAT. Setting this to true automatically enables HY2_REALM
|
||||
HY2_WARP=''
|
||||
|
||||
|
||||
# Reality 的私钥, 留空则随机生成
|
||||
# Reality private key. Random generation if left empty
|
||||
|
||||
Reference in New Issue
Block a user