Add brutal debug option for Hysteria2

This commit is contained in:
世界
2023-10-16 12:00:00 +08:00
parent d1e3a1837f
commit 9402ed896a
9 changed files with 42 additions and 18 deletions

View File

@@ -206,7 +206,7 @@ func (h *Hysteria) offerNew(ctx context.Context) (quic.Connection, error) {
packetConn.Close()
return nil, E.New("remote error: ", serverHello.Message)
}
quicConn.SetCongestionControl(hyCC.NewBrutalSender(serverHello.RecvBPS))
quicConn.SetCongestionControl(hyCC.NewBrutalSender(serverHello.RecvBPS, false, nil))
h.conn = quicConn
h.rawConn = udpConn
return quicConn, nil