mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-07-19 21:08:40 +08:00
The universal proxy platform
sing-box.sagernet.org/
Connections routed to a selector (route target or final) enter through the ConnectionHandler path (NewConnection/NewPacketConnection), which never goes through Selector.DialContext/ListenPacket, so they were never registered in the interrupt group. As a result, SelectOutbound interrupted nothing and existing connections kept flowing over the previously selected outbound. Register the inbound connection in the interrupt group as an external connection on both handler branches, so switching the selected outbound interrupts routed connections when interrupt_exist_connections is enabled, while leaving them untouched by default. Fixes #4281. |
||
|---|---|---|
| .github | ||
| adapter | ||
| clients | ||
| cmd | ||
| common | ||
| constant | ||
| daemon | ||
| dns | ||
| docs | ||
| experimental | ||
| include | ||
| log | ||
| option | ||
| protocol | ||
| release | ||
| route | ||
| service | ||
| test | ||
| transport | ||
| .fpm_openwrt | ||
| .fpm_pacman | ||
| .fpm_systemd | ||
| .gitignore | ||
| .gitmodules | ||
| .golangci.yml | ||
| box.go | ||
| debug_http.go | ||
| debug_stub.go | ||
| debug_unix.go | ||
| debug.go | ||
| Dockerfile | ||
| Dockerfile.binary | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| mkdocs.yml | ||
| README.md | ||
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.