mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 12:42:22 +08:00
The universal proxy platform
71b9e4ff17
This helps the daemon work better on IoT devices like RaspberryPi. According to systemd's documentation, `network.target` means there has already been a network manager started, but the network may not be "up". On most PCs this does not matter because the network will turn to "up" almost immidiately. The IoT devices' network interface may not be set up quickly enough, so they may meet that the sing-box daemon is started before network is ready, which results that sing-box cannot find a working route. The workaround of this is restarting sing-box daemon but it absolutely is not the perfect solution. As `network-online.target` must be triggered by network manager after you configured it, I keep `network.target` so there will be no change to those who do not enabled proper trigger service like `NetworkManager-wait-online.service`. See also: https://systemd.io/NETWORK_ONLINE/ |
||
---|---|---|
.github | ||
adapter | ||
cmd | ||
common | ||
constant | ||
docs | ||
experimental | ||
inbound | ||
include | ||
log | ||
ntp | ||
option | ||
outbound | ||
release | ||
route | ||
test | ||
transport | ||
.gitignore | ||
.golangci.yml | ||
.goreleaser.yaml | ||
box_outbound.go | ||
box.go | ||
debug_go118.go | ||
debug_go119.go | ||
debug_http.go | ||
debug_stub.go | ||
debug_unix.go | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
Makefile | ||
mkdocs.yml | ||
README.md |
sing-box
The universal proxy platform.
Documentation
Support
https://community.sagernet.org/c/sing-box/
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.