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
3 changed files with 5 additions and 11 deletions

View File

@@ -81,7 +81,7 @@ func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, opt
uri.Path = options.Path
err := sHTTP.URLSetPath(&uri, options.Path)
if err != nil {
return nil, E.Cause(err, "parse path")
return nil, E.New("failed to set path: " + err.Error())
}
client.url = &uri
return client, nil