No description
  • Go 95.5%
  • C 1.7%
  • TypeScript 1.1%
  • Shell 0.6%
  • Swift 0.3%
  • Other 0.5%
Find a file
Amal Bansode 8fd02bb626
types/geo: fix floating point bug causing NaN returns in SphericalAngleTo (#18777)
Subtle floating point imprecision can propagate and lead to
trigonometric functions receiving inputs outside their
domain, thus returning NaN. Clamp the input to the valid domain
to prevent this.

Also adds a fuzz test for SphericalAngleTo.

Updates tailscale/corp#37518

Signed-off-by: Amal Bansode <amal@tailscale.com>
2026-03-02 17:33:57 -08:00
.bencher
.github .github: Bump actions/setup-go from 6.2.0 to 6.3.0 2026-03-02 09:52:11 -07:00
appc appc,feature/conn25,net: Add DNS response interception for conn25 2026-02-20 07:43:37 -08:00
atomicfile all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
chirp all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
client client/systray: add installer for a freedesktop autostart file (#18767) 2026-02-26 12:59:45 -05:00
clientupdate clientupdate, cmd/tailscale/cli: support updating to release-candidates (#18632) 2026-02-12 14:49:52 -05:00
cmd cmd/tailscaled/*.{target,unit}: add systemd online target 2026-02-26 18:39:28 -08:00
control net/dns: make MagicDNS IPv6 registration opt-out now, not opt-in 2026-02-17 07:29:12 -10:00
derp all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
disco all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
docs all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
doctor all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
drive all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
envknob all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
feature appc,feature/conn25,net: Add DNS response interception for conn25 2026-02-20 07:43:37 -08:00
gokrazy gokrazy: use monorepo for gokrazy appliance builds (monogok) 2026-02-13 16:19:14 -08:00
health health: always include control health messages in the current state 2026-02-13 13:45:54 -06:00
hostinfo hostinfo: retrieve OS version for Macs running the OSS client 2026-01-27 15:51:07 +00:00
internal cmd/tailscale/cli: allow fetching keys from AWS Parameter Store 2026-01-29 18:09:56 -05:00
ipn netns,wgengine: add OpenBSD support to netns via an rtable 2026-02-25 12:44:32 -08:00
jsondb all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
k8s-operator cmd/k8s-operator,k8s-operator: define ProxyGroupPolicy reconciler (#18654) 2026-02-18 09:34:55 +00:00
kube cmd/containerboot,kube: enable autoadvertisement of Tailscale services on containerboot (#18527) 2026-02-20 15:52:34 -08:00
licenses licenses: update license notices 2026-03-02 08:04:19 -08:00
log all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
logpolicy all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
logtail logtail/filch: fix filch test panic (#18660) 2026-02-10 13:24:00 -08:00
maths all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
metrics all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
net net/netmon: ignore NetBird interface on Linux 2026-02-27 17:38:52 -08:00
omit all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
packages/deb all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
paths all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
portlist portlist: also tb.Skip benchmarks (not just tests) on bad Linux kernels 2026-02-12 13:19:09 -08:00
posture all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
prober prober: fix race condition in TestExcludeInRunAll (#18807) 2026-02-25 13:52:01 -05:00
proxymap all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
release all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
safesocket all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
safeweb all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
scripts scripts/installer.sh: handle KDE Linux (#18861) 2026-03-02 18:29:49 +00:00
sessionrecording all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ssh/tailssh ssh/tailssh: fix data race on conn auth state in OnPolicyChange 2026-02-16 13:02:46 -10:00
syncs all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tailcfg net/dns: make MagicDNS IPv6 registration opt-out now, not opt-in 2026-02-17 07:29:12 -10:00
tempfork feature/c2n: move answerC2N code + deps out of control/controlclient 2025-10-04 13:16:49 -07:00
tka all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tool tool/listpkgs: add --affected-by-tag 2026-02-25 11:41:33 -08:00
tsconsensus tsconsensus: fix race condition in TestOnlyTaggedPeersCanBeDialed 2026-02-17 14:39:02 -07:00
tsconst all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tsd wgengine/netstack: add local tailscale service IPs to route and terminate locally (#18461) 2026-01-30 16:46:03 -05:00
tsnet tsnet: fix Listen for unspecified addresses and ephemeral ports 2026-02-28 16:33:56 -08:00
tstest tstest/integration/nat: use per-call timeout in natlab ping (#18811) 2026-02-25 17:41:51 -05:00
tstime all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tsweb tsweb/varz: remove unnecessary Map.Init() calls in tests 2026-02-06 18:35:30 +00:00
types types/geo: fix floating point bug causing NaN returns in SphericalAngleTo (#18777) 2026-03-02 17:33:57 -08:00
util util/set: make Set.Slice return elements in sorted order for ordered types 2026-02-26 08:40:06 -08:00
version all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
wf wf: allow limited broadcast to/from permitted interfaces when using an exit node on Windows 2026-01-23 18:30:38 -06:00
wgengine wgengine/netstack: deliver self-addressed packets via loopback 2026-02-27 14:30:41 -08:00
wif all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
words all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
.gitattributes
.gitignore Add .stignore for syncthing (#18540) 2026-01-27 16:15:17 -08:00
.golangci.yml .github: Bump golangci/golangci-lint-action from 6.5.0 to 7.0.0 (#15476) 2025-04-14 16:04:36 -06:00
.stignore Add .stignore for syncthing (#18540) 2026-01-27 16:15:17 -08:00
ALPINE.txt docker: bump alpine v3.19 -> 3.22 (#17155) 2025-09-17 20:22:24 +01:00
api.md
assert_ts_toolchain_match.go .: permit running binary built with TS_GO_NEXT=1 2026-02-23 09:37:04 -08:00
build_dist.sh build_dist.sh: keep --extra-small making a usable build, add --min 2025-10-06 21:15:25 -07:00
build_docker.sh build_docker.sh: support including extra files (#17405) 2025-10-02 13:29:03 +01:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md: update code of conduct 2025-10-28 08:58:00 -07:00
CODEOWNERS
Dockerfile all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
Dockerfile.base all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
flake.lock .github/Makefile/flake: update nix flake support (#16636) 2025-08-19 10:46:07 -04:00
flake.nix go.mod: bump gvisor 2026-02-26 18:29:36 -08:00
go.mod go.mod: bump gvisor 2026-02-26 18:29:36 -08:00
go.mod.sri go.mod: bump gvisor 2026-02-26 18:29:36 -08:00
go.sum go.mod: bump gvisor 2026-02-26 18:29:36 -08:00
go.toolchain.branch go.toolchain.branch: bump to go1.25 (#16954) 2025-08-26 07:44:26 -07:00
go.toolchain.next.branch tool/gocross, pull-toolchain.sh: support a "next" Go toolchain 2026-01-27 14:07:35 -08:00
go.toolchain.next.rev go.toolchain.next.rev: update to final Go 1.26.0 [next] 2026-02-10 20:44:30 -08:00
go.toolchain.rev go.toolchain.{rev,next.rev}: update to Go 1.25.7 / Go 1.26rc3 (#18633) 2026-02-06 12:54:11 -08:00
go.toolchain.rev.sri go.toolchain.{rev,next.rev}: update to Go 1.25.7 / Go 1.26rc3 (#18633) 2026-02-06 12:54:11 -08:00
go.toolchain.version go.toolchain.{rev,next.rev}: update to Go 1.25.7 / Go 1.26rc3 (#18633) 2026-02-06 12:54:11 -08:00
gomod_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
header.txt all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
LICENSE all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
license_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
Makefile Makefile, cmd/*/depaware.txt: split out vendor packages explicitly 2025-10-01 13:02:06 -07:00
PATENTS
pkgdoc_test.go gokrazy: use monorepo for gokrazy appliance builds (monogok) 2026-02-13 16:19:14 -08:00
pull-toolchain.sh go.toolchain.{rev,next.rev}: update to Go 1.25.7 / Go 1.26rc3 (#18633) 2026-02-06 12:54:11 -08:00
README.md README: update the version of Go in the README 2025-09-29 22:09:25 +01:00
SECURITY.md
shell.nix go.mod: bump gvisor 2026-02-26 18:29:36 -08:00
staticcheck.conf
update-flake.sh flake.nix: update Nix to use tailscale/go 1.25.2 (#17500) 2025-10-08 14:37:47 -04:00
version-embed.go cmd/printdep: add --next flag to use rc Go build hash instead 2026-01-27 14:49:56 -08:00
VERSION.txt VERSION.txt: this is v1.95.0 (#18414) 2026-01-14 14:19:17 -08:00
version_tailscale_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
version_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00

Tailscale

https://tailscale.com

Private WireGuard® networks made easy

Overview

This repository contains the majority of Tailscale's open source code. Notably, it includes the tailscaled daemon and the tailscale CLI tool. The tailscaled daemon runs on Linux, Windows, macOS, and to varying degrees on FreeBSD and OpenBSD. The Tailscale iOS and Android apps use this repo's code, but this repo doesn't contain the mobile GUI code.

Other Tailscale repos of note:

For background on which parts of Tailscale are open source and why, see https://tailscale.com/opensource/.

Using

We serve packages for a variety of distros and platforms at https://pkgs.tailscale.com.

Other clients

The macOS, iOS, and Windows clients use the code in this repository but additionally include small GUI wrappers. The GUI wrappers on non-open source platforms are themselves not open source.

Building

We always require the latest Go release, currently Go 1.25. (While we build releases with our Go fork, its use is not required.)

go install tailscale.com/cmd/tailscale{,d}

If you're packaging Tailscale for distribution, use build_dist.sh instead, to burn commit IDs and version info into the binaries:

./build_dist.sh tailscale.com/cmd/tailscale
./build_dist.sh tailscale.com/cmd/tailscaled

If your distro has conventions that preclude the use of build_dist.sh, please do the equivalent of what it does in your distro's way, so that bug reports contain useful version information.

Bugs

Please file any issues about this code or the hosted service on the issue tracker.

Contributing

PRs welcome! But please file bugs. Commit messages should reference bugs.

We require Developer Certificate of Origin Signed-off-by lines in commits.

See commit-messages.md (or skim git log) for our commit message style.

About Us

Tailscale is primarily developed by the people at https://github.com/orgs/tailscale/people. For other contributors, see:

WireGuard is a registered trademark of Jason A. Donenfeld.