Revert "Fix Host ignored in v2ray websocket transport"

This reverts commit aaa6702863.
This commit is contained in:
世界 2023-11-09 15:58:23 +08:00
parent f6fee53676
commit c2c3f7284f
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 5 additions and 11 deletions

View file

@ -50,7 +50,7 @@ func NewClientTransport(ctx context.Context, dialer N.Dialer, serverAddr M.Socks
case C.V2RayTransportTypeGRPC:
return NewGRPCClient(ctx, dialer, serverAddr, options.GRPCOptions, tlsConfig)
case C.V2RayTransportTypeWebsocket:
return v2raywebsocket.NewClient(ctx, dialer, serverAddr, options.WebsocketOptions, tlsConfig)
return v2raywebsocket.NewClient(ctx, dialer, serverAddr, options.WebsocketOptions, tlsConfig), nil
case C.V2RayTransportTypeQUIC:
if tlsConfig == nil {
return nil, C.ErrTLSRequired