Update sing-box core, refactor MASQUE, update XHTTP

This commit is contained in:
Sergei Maklagin
2026-05-29 01:31:57 +03:00
parent b586c4f313
commit 41e815e18b
111 changed files with 1291 additions and 1660 deletions

View File

@@ -70,12 +70,14 @@ func (c *DefaultDialerClient) OpenStream(ctx context.Context, url string, sessio
c.closed = true
}
gotConn.Close()
common.Close(body)
wrc.Close()
return
}
if resp.StatusCode != 200 || uploadOnly { // stream-up
io.Copy(io.Discard, resp.Body)
resp.Body.Close() // if it is called immediately, the upload will be interrupted also
common.Close(body)
wrc.Close()
return
}