Try to fix HTTP server leak again

This commit is contained in:
世界 2023-12-21 10:29:16 +08:00
parent 5a3d0edd1c
commit 544863e3f4
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -99,7 +99,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 := net.Pipe()