Add brutal debug option for Hysteria2

This commit is contained in:
世界
2023-10-21 12:00:00 +08:00
parent 9bd0a4b4bc
commit b9eadba65f
7 changed files with 40 additions and 16 deletions

View File

@@ -61,6 +61,8 @@ func NewHysteria2(ctx context.Context, router adapter.Router, logger log.Context
client, err := hysteria2.NewClient(hysteria2.ClientOptions{
Context: ctx,
Dialer: outboundDialer,
Logger: logger,
BrutalDebug: options.BrutalDebug,
ServerAddress: options.ServerOptions.Build(),
SendBPS: uint64(options.UpMbps * hysteria.MbpsToBps),
ReceiveBPS: uint64(options.DownMbps * hysteria.MbpsToBps),