diff --git a/transport/internet/reality/reality.go b/transport/internet/reality/reality.go index b8bb881f..5548580c 100644 --- a/transport/internet/reality/reality.go +++ b/transport/internet/reality/reality.go @@ -222,6 +222,7 @@ func UClient(c net.Conn, config *Config, ctx context.Context, dest net.Destinati if resp, err = client.Do(req); err != nil { break } + defer resp.Body.Close() req.Header.Set("Referer", req.URL.String()) if body, err = io.ReadAll(resp.Body); err != nil { break