Fix v2ray HTTP/1.1 transport compatibility

This commit is contained in:
世界
2023-04-07 18:20:07 +08:00
parent 05bb1b88c3
commit 46c318c6fe
9 changed files with 208 additions and 101 deletions

View File

@@ -62,7 +62,7 @@ func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, opt
}
headers := make(http.Header)
for key, value := range options.Headers {
headers.Set(key, value)
headers[key] = value
}
return &Client{
wsDialer,