Update BBR and Hysteria congestion control &

Migrate legacy Hysteria protocol to library
This commit is contained in:
世界
2023-10-21 12:00:00 +08:00
parent 97e3792bbe
commit 209e68b783
17 changed files with 211 additions and 1399 deletions

View File

@@ -12,7 +12,6 @@ import (
"github.com/sagernet/sing-box/common/tls"
C "github.com/sagernet/sing-box/constant"
"github.com/sagernet/sing-box/option"
"github.com/sagernet/sing-box/transport/hysteria"
"github.com/sagernet/sing-quic"
"github.com/sagernet/sing/common"
"github.com/sagernet/sing/common/bufio"
@@ -93,7 +92,7 @@ func (c *Client) DialContext(ctx context.Context) (net.Conn, error) {
if err != nil {
return nil, err
}
return &hysteria.StreamWrapper{Conn: conn, Stream: stream}, nil
return &StreamWrapper{Conn: conn, Stream: stream}, nil
}
func (c *Client) Close() error {