From 21a23d7488b3f0a3bbe44aae9de64cfa6a289d87 Mon Sep 17 00:00:00 2001 From: Shtorm <108103062+shtorm-7@users.noreply.github.com> Date: Sun, 9 Aug 2026 15:03:14 +0300 Subject: [PATCH] Fix OpenStream dropping connection errors --- transport/v2rayxhttp/dialer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transport/v2rayxhttp/dialer.go b/transport/v2rayxhttp/dialer.go index 464d4e65..96e54af7 100644 --- a/transport/v2rayxhttp/dialer.go +++ b/transport/v2rayxhttp/dialer.go @@ -116,7 +116,8 @@ func (c *DefaultDialerClient) OpenStream(ctx context.Context, url string, sessio FillStreamRequest(req, sessionId, "", c.options) wrc = &WaitReadCloser{Wait: make(chan struct{}), Cancel: cancel} go func() { - resp, err := c.client.Do(req) + var resp *http.Response + resp, err = c.client.Do(req) if err != nil { if !uploadOnly && !errors.Is(err, context.Canceled) { // stream-down is enough c.Close()