Skip to content

Commit 3fad7f1

Browse files
committed
Try to fix HTTP server leak again
1 parent e9eab1d commit 3fad7f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

protocol/http/handshake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func HandleConnection(ctx context.Context, conn net.Conn, reader *std_bufio.Read
100100
httpClient = &http.Client{
101101
Transport: &http.Transport{
102102
DisableCompression: true,
103-
DialContext: func(context context.Context, network, address string) (net.Conn, error) {
103+
DialContext: func(ctx context.Context, network, address string) (net.Conn, error) {
104104
metadata.Destination = M.ParseSocksaddr(address)
105105
metadata.Protocol = "http"
106106
input, output := pipe.Pipe()

0 commit comments

Comments
 (0)