mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-01 14:18:36 +00:00
08eaa2878c3ec3307c783e6380757abdd911a2f0
When authentication failed, the reality client returned the error and sent the fallback request from a goroutine on the same connection. The TLS dialer closes the connection when the handshake returns an error, so the request always failed with "use of closed network connection" and the client closed the connection right after the target's handshake. Send the request within the handshake context before returning the error, so the caller owns the connection again once it gets the error.
sing-box
The universal proxy platform.
Documentation
License
Copyright (C) 2022 by nekohasekai <contact-sagernet@sekai.icu>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
In addition, no derivative work may use the name or imply association
with this application without prior consent.
Releases
2
v1.13.11-extended-1.6.2
Latest
Languages
Go
92%
TypeScript
5.9%
Shell
1.1%
Objective-C
0.6%
Makefile
0.2%
Other
0.1%