1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-09 09:20:45 +00:00

fix http2 chain proxy

This commit is contained in:
dyhkwong 2023-10-24 22:36:09 +08:00 committed by Xiaokang Wang (Shelikhoo)
parent abf03a2df9
commit 761422c28d

View File

@ -45,7 +45,7 @@ func getHTTPClient(ctx context.Context, dest net.Destination, securityEngine *se
}
transport := &http2.Transport{
DialTLSContext: func(ctx context.Context, network, addr string, tlsConfig *gotls.Config) (gonet.Conn, error) {
DialTLSContext: func(_ context.Context, network, addr string, tlsConfig *gotls.Config) (gonet.Conn, error) {
rawHost, rawPort, err := net.SplitHostPort(addr)
if err != nil {
return nil, err