Browse Source

fix http2 chain proxy

dyhkwong 2 years ago
parent
commit
761422c28d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      transport/internet/http/dialer.go

+ 1 - 1
transport/internet/http/dialer.go

@@ -45,7 +45,7 @@ func getHTTPClient(ctx context.Context, dest net.Destination, securityEngine *se
 	}
 	}
 
 
 	transport := &http2.Transport{
 	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)
 			rawHost, rawPort, err := net.SplitHostPort(addr)
 			if err != nil {
 			if err != nil {
 				return nil, err
 				return nil, err