You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/tailscaled
Chenyang Gao b9fb8ac702 fix sys.Set(router) issue will crash the daemon in some OSs
Signed-off-by: Chenyang Gao <gps949@outlook.com>

in commit 6e96744, the tsd system type has been added.
Which will cause the daemon will crash on some  OSs (Windows, darwin and so on).
The root cause is that on those OSs, handleSubnetsInNetstack() will return true and set the conf.Router with a wrapper. 
Later in NewUserspaceEngine() it will do subsystem set and found that early set router mismatch to current value, then panic.
1 year ago
..
childproc all: update copyright and license headers 2 years ago
debug.go all: avoid repeated default interface lookups 1 year ago
depaware.txt tsd: add package with System type to unify subsystem init, discovery 1 year ago
generate.go cmd/mkmanifest, cmd/tailscale, cmd/tailscaled: remove Windows arm32 resources from OSS 2 years ago
install_darwin.go all: update copyright and license headers 2 years ago
install_windows.go all: update copyright and license headers 2 years ago
manifest_windows_386.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
manifest_windows_amd64.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
manifest_windows_arm64.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
proxy.go all: update copyright and license headers 2 years ago
required_version.go all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 2 years ago
ssh.go all: update copyright and license headers 2 years ago
taildrop.go various: add detection and Taildrop for Unraid 1 year ago
tailscaled.defaults
tailscaled.go fix sys.Set(router) issue will crash the daemon in some OSs 1 year ago
tailscaled.openrc tstest/integration/vms: use an in-process logcatcher (#2360) 3 years ago
tailscaled.service cmd/tailscaled: use explicit equal sign in --port=$PORT in tailscaled.service 2 years ago
tailscaled_bird.go all: update copyright and license headers 2 years ago
tailscaled_notwindows.go all: update copyright and license headers 2 years ago
tailscaled_test.go all: update copyright and license headers 2 years ago
tailscaled_windows.go tsd: add package with System type to unify subsystem init, discovery 1 year ago
windows-manifest.xml cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
with_cli.go all: update copyright and license headers 2 years ago