Fix QUIC congestion control

- Remove `bbr_standard`, `bbr2` and `bbr2_variant` from the naive inbound
- Report injected congestion controllers with connection-wide packet numbers in quic-go
This commit is contained in:
世界
2026-08-30 17:41:47 +08:00
parent 55b18b2271
commit 103e266ebc
9 changed files with 15 additions and 66 deletions
+1 -11
View File
@@ -6,21 +6,11 @@ import (
"github.com/sagernet/sing/common/json/badoption"
)
type QuicheCongestionControl string
const (
QuicheCongestionControlDefault QuicheCongestionControl = ""
QuicheCongestionControlBBR QuicheCongestionControl = "TBBR"
QuicheCongestionControlBBRv2 QuicheCongestionControl = "B2ON"
QuicheCongestionControlCubic QuicheCongestionControl = "CQBC"
QuicheCongestionControlReno QuicheCongestionControl = "RENO"
)
type NaiveInboundOptions struct {
ListenOptions
Users []auth.User `json:"users,omitempty"`
Network NetworkList `json:"network,omitempty"`
QUICCongestionControl string `json:"quic_congestion_control,omitempty" enum:"bbr,bbr_standard,bbr2,bbr2_variant,cubic,reno"`
QUICCongestionControl string `json:"quic_congestion_control,omitempty" enum:"bbr,cubic,reno"`
InboundTLSOptionsContainer
}