Transport: Refine Hysteria & quicParams

This commit is contained in:
Fangliding
2026-04-03 03:51:13 +08:00
parent 061d9462de
commit 7999f7eae6
6 changed files with 42 additions and 30 deletions
+11 -1
View File
@@ -1236,8 +1236,18 @@ FinalMask 在核心处理完包括 TLS/REALITY 在内的传输层加密后,对
}
```
用于 XHTTP H3 以及 hysteria 的 QUIC 配置调整。其中 XHTTP
> `congestion`: reno | bbr | brutal | force-brutal
拥塞控制算法,Hysteria 默认为 `brutal`,XHTTP H3 默认使用 `bbr`。
`reno`/`bbr`: 知名算法。
`brutal`: 与对端协商固定发包速率或降级到 BBR,只支持 Hysteria 传输(因为 XHTTP 无协商机制)。
`force-brutal`: 同 `brutal`,但强制使上行使用 `brutalUp` 固定发包速率,无视对端协商。
> `debug`: false | true
启用 bbr/brutal congestion control 日志。
@@ -1250,7 +1260,7 @@ FinalMask 在核心处理完包括 TLS/REALITY 在内的传输层加密后,对
格式用户友好,支持各种常见的比特每秒写法,包括 `1000000` `100kb` `20 mb` `100 mbps` `1g` `1 tbps` 等等等,大小写不敏感,单位之间可以带或者不带空格,无单位时默认为 bps(比特每秒),不能低于 65535 bps。
协商行为和 Hysteria 原版一致:
协商行为和 Hysteria brutal 一致:
服务端的值将限制客户端可以选择的最大 Brutal 模式速率,为 0 表示不限制客户端。
+3 -9
View File
@@ -1,14 +1,6 @@
# Hysteria
::: tip
搭配 `hysteria protocol` 时默认启用 `quic native udp`
搭配 `hysteria inbound` 时 `auth` 将会被 `clients` 覆盖 (如果存在)
搭配其他 `protocol` 能否代理 `udp` 取决于该 `protocol` 是否具有 `uot` 能力
启用 `finalmask.udp` 后将会破坏 `masquerade` 的页面伪装
:::
Hysteria2 的底层 QUIC 传输的 Xray 实现,通常搭配 hysteria[出站](../outbounds/hysteria.md) 和 hysteria[入站](../inbounds/hysteria.md) 使用,此时兼容其官方实现。
## HysteriaObject
@@ -45,6 +37,8 @@ Hysteria 版本,必须为 2。
Hysteria 认证密码,服务端和客户端需要保持一致。
搭配 `hysteria inbound` 时将会被 `clients` 覆盖 (如果存在)
> `udpIdleTimeout`: number
单位秒,默认 60。