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.
 
 
 
 
 
 
Go to file
Andrew Dunham 6ddeae7556 types/views: optimize SliceEqualAnyOrderFunc for small slices
If the total number of differences is less than a small amount, just do
the dumb quadratic thing and compare every single object instead of
allocating a map.

Updates tailscale/corp#25479

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I8931b4355a2da4ec0f19739927311cf88711a840
11 months ago
.bencher bencher: add config to suppress failures on benchmark regressions. 4 years ago
.github .github: update matrix of installer.sh tests (#14462) 12 months ago
appc util/slicesx: add MapKeys and MapValues from golang.org/x/exp/maps 11 months ago
atomicfile various: add golangci-lint, fix issues (#7905) 3 years ago
chirp all: update copyright and license headers 3 years ago
client client/web: properly show "Log In" for web client on fresh install (#14569) 11 months ago
clientupdate clientupdate: don't link distsign on platforms that don't download 1 year ago
cmd cmd/k8s-operator,k8s-operator: allow users to set custom labels for the optional ServiceMonitor (#14475) 11 months ago
control controlclient: do not set HTTPS port for any private coordination server IP (#14564) 11 months ago
derp prober,derp/derphttp: make dev-mode DERP probes work without TLS (#14347) 12 months ago
disco disco: correct noun for nacl box type in disco docs 2 years ago
docs docs/k8s: add some high-level operator architecture diagrams (#13915) 12 months ago
doctor net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2 years ago
drive drive/driveimpl: use su instead of sudo 1 year ago
envknob all: use iterators in more places instead of Range funcs 11 months ago
gokrazy gokrazy, various: use point versions of Go and update Nix deps 1 year ago
health health: fix TestHealthMetric to pass on release branch 1 year ago
hostinfo hostinfo: improve accuracy of Linux desktop detection heuristic 11 months ago
internal all: add test for package comments, fix, add comments as needed 1 year ago
ipn ipn/ipnlocal: add client metric gauge for number of IPNBus connections 11 months ago
jsondb all: update copyright and license headers 3 years ago
k8s-operator cmd/k8s-operator,k8s-operator: allow users to set custom labels for the optional ServiceMonitor (#14475) 11 months ago
kube cmd/{containerboot,k8s-operator},kube/kubetypes: kube Ingress L7 proxies only advertise HTTPS endpoint when ready (#14171) 1 year ago
licenses licenses: update license notices 1 year ago
log log/sockstatlog: don't block for more than 5s on shutdown 1 year ago
logpolicy Switch logging service from log.tailscale.io to log.tailscale.com (#14398) 12 months ago
logtail Switch logging service from log.tailscale.io to log.tailscale.com (#14398) 12 months ago
metrics metrics,syncs: add ShardedInt support to metrics.LabelMap 12 months ago
net all: fix golangci-lint errors 11 months ago
omit cmd/tailscaled, ipn/conffile: support ec2 user-data config file 2 years ago
packages/deb go.mod: upgrade nfpm to v2 (#8786) 2 years ago
paths all: use Go 1.22 range-over-int 2 years ago
portlist all: use Go 1.22 range-over-int 2 years ago
posture control/controlclient,posture,util/syspolicy: use predefined syspolicy keys instead of string literals 1 year ago
prober prober: record total bytes transferred in DERP bandwidth probes 11 months ago
proxymap ipnlocal,proxymap,wgengine/netstack: add optional WhoIs/proxymap debug 1 year ago
release release/dist: clamp min / max version for synology package centre (#13857) 1 year ago
safesocket safesocket: don't depend on go-ps on iOS 1 year ago
safeweb safeweb: add a Shutdown method to the Server type (#14048) 1 year ago
scripts scripts/install.sh: add special case for Parrot Security (#14487) 11 months ago
sessionrecording sessionrecording: implement v2 recording endpoint support (#14105) 1 year ago
smallzstd all: use Go 1.22 range-over-int 2 years ago
ssh/tailssh all: fix golangci-lint errors 11 months ago
syncs syncs: add ShardedInt expvar.Var type 12 months ago
tailcfg tailcfg: remove unused User fields 11 months ago
taildrop taildrop: fix defer in loop (#13757) 1 year ago
tempfork cmd/tailscale: add shell tab-completion 2 years ago
tka tka: truncate long rotation signature chains 1 year ago
tool tool/gocross: remove trimpath from test builds 1 year ago
tsconst cmd/tailscale/cli: support passing network lock keys via files 1 year ago
tsd util/usermetrics: make usermetrics non-global 1 year ago
tsnet Switch logging service from log.tailscale.io to log.tailscale.com (#14398) 12 months ago
tstest all: fix golangci-lint errors 11 months ago
tstime all: use math/rand/v2 more 2 years ago
tsweb tsweb: change RequestID format to have a date in it 1 year ago
types types/views: optimize SliceEqualAnyOrderFunc for small slices 11 months ago
util ipn/ipnlocal, util/goroutines: track goroutines for tests, shutdown 11 months ago
version wgengine/router: refactor udm-pro into broader ubnt support 11 months ago
wf wf/firewall: allow link-local multicast for permitted local routes when the killswitch is on on Windows 1 year ago
wgengine wgengine/magicsock: refactor maybeRebindOnError 11 months ago
words words: Add scoville to scales.txt (#14084) 1 year ago
.gitattributes .: add .gitattributes entry to use Go hunk-header driver 4 years ago
.gitignore tstest/tailmac: add customized macOS virtualization tooling (#13146) 1 year ago
.golangci.yml ci: run 'go vet' in golangci-lint; fix errors in tests 2 years ago
ALPINE.txt ALPINE.txt,Dockerfile{.base},build_docker.sh: bump alpine (#10543) 2 years ago
AUTHORS Move Linux client & common packages into a public repo. 6 years ago
CODEOWNERS CODEOWNERS: add the start of an owners file 2 years ago
CODE_OF_CONDUCT.md Add a code of conduct. 6 years ago
Dockerfile all: switch to and require Go 1.23 1 year ago
Dockerfile.base ALPINE.txt,Dockerfile{.base},build_docker.sh: bump alpine (#10543) 2 years ago
LICENSE all: update tools that manage copyright headers 3 years ago
Makefile ssh/tailssh: remove unused public key support 12 months ago
PATENTS Move Linux client & common packages into a public repo. 6 years ago
README.md Update README to reference correct Commit Style URL 11 months ago
SECURITY.md Add a SECURITY.md for vulnerability reports. 6 years ago
VERSION.txt VERSION.txt: this is v1.79.0 1 year ago
api.md {api.md,publicapi}: remove old API docs (#13468) 1 year ago
assert_ts_toolchain_match.go tailscaleroot: panic if tailscale_go build tag but Go toolchain mismatch 1 year ago
build_dist.sh cmd/tailscale: add shell tab-completion 2 years ago
build_docker.sh Makefile,./build_docker.sh: update kube operator image build target name (#14251) 1 year ago
flake.lock nix: update nix and use go 1.23 1 year ago
flake.nix gokrazy, various: use point versions of Go and update Nix deps 1 year ago
go.mod go.mod: bump go-git to v5.13.1 (#14584) 11 months ago
go.mod.sri go.mod.sri: update SRI hash for go.mod changes 1 year ago
go.sum go.mod: bump go-git to v5.13.1 (#14584) 11 months ago
go.toolchain.branch all: switch to and require Go 1.23 1 year ago
go.toolchain.rev syncs: add ShardedInt expvar.Var type 12 months ago
gomod_test.go go.mod: add test that replace directives aren't added in oss 2 years ago
header.txt cmd/k8s-operator: operator can create subnetrouter (#9505) 2 years ago
pkgdoc_test.go all: add test for package comments, fix, add comments as needed 1 year ago
pull-toolchain.sh pull-toolchain.sh: don't run update-flake.sh 3 years ago
shell.nix go.mod.sri: update SRI hash for go.mod changes 1 year ago
staticcheck.conf all: cleanup unused code, part 2 (#10670) 2 years ago
update-flake.sh Code Improvements (#11311) 2 years ago
version-embed.go Fix various linting, vet & static check issues 11 months ago
version_tailscale_test.go tailscaleroot: panic if tailscale_go build tag but Go toolchain mismatch 1 year ago
version_test.go go.mod,wgengine/netstack: bump gvisor 2 years ago

README.md

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.23. (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 git log for our commit message style. It's basically the same as Go's 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.