Skip to content

Commit

Permalink
Try to fix HTTP server leak again
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Dec 21, 2023
1 parent e9eab1d commit 3fad7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/http/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func HandleConnection(ctx context.Context, conn net.Conn, reader *std_bufio.Read
httpClient = &http.Client{
Transport: &http.Transport{
DisableCompression: true,
DialContext: func(context context.Context, network, address string) (net.Conn, error) {
DialContext: func(ctx context.Context, network, address string) (net.Conn, error) {
metadata.Destination = M.ParseSocksaddr(address)
metadata.Protocol = "http"
input, output := pipe.Pipe()
Expand Down

0 comments on commit 3fad7f1

Please sign in to comment.