Add brutal debug option for Hysteria2

This commit is contained in:
世界
2023-10-08 12:45:15 +08:00
parent a6d815d3c5
commit 2a9e5c9634
9 changed files with 42 additions and 18 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),