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
Joe Tsai ab7e6f3f11
util/deephash: require pointer in API (#5467)
The entry logic of Hash has extra complexity to make sure
we always have an addressable value on hand.
If not, we heap allocate the input.
For this reason we document that there are performance benefits
to always providing a pointer.
Rather than documenting this, just enforce it through generics.

Also, delete the unused HasherForType function.
It's an interesting use of generics, but not well tested.
We can resurrect it from code history if there's a need for it.

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2 years ago
.bencher
.github .github/actions: add signoff to go-licenses commits 2 years ago
atomicfile atomicfile: update docs to clarify behavior of argument 2 years ago
chirp
client/tailscale client,cmd/tailscale,ipn,tka,types: implement tka initialization flow 2 years ago
cmd cmd/tailscale: use platform specific license link 2 years ago
control control/controlclient,tailcfg: [capver 40] create KeySignature field in tailcfg.Node 2 years ago
derp all: use syncs.AtomicValue 2 years ago
disco all: migrate more code code to net/netip directly 2 years ago
docs
envknob
health
hostinfo tailcfg: add Hostinfo.GoVersion 2 years ago
internal/tooldeps
ipn tka: make storage a parameter rather than an Authority struct member 2 years ago
jsondb
kube
licenses licenses: update android licenses 2 years ago
log
logpolicy
logtail cmd/tsconnect: make logtail uploading work 2 years ago
metrics
net net/dns/publicdns: Add Mullvad DoH 2 years ago
packages/deb
paths all: use syncs.AtomicValue 2 years ago
portlist syncs, all: move to using Go's new atomic types instead of ours 2 years ago
prober syncs, all: move to using Go's new atomic types instead of ours 2 years ago
safesocket all: gofmt for Go 1.19 2 years ago
scripts scripts/installer.sh: add `-y` for unattended install 2 years ago
smallzstd
ssh/tailssh syncs, all: move to using Go's new atomic types instead of ours 2 years ago
syncs syncs: add generic AtomicValue 2 years ago
tailcfg tailcfg: add Hostinfo.GoVersion 2 years ago
tempfork all: gofmt for Go 1.19 2 years ago
tka tka: make storage a parameter rather than an Authority struct member 2 years ago
tool
tsconst
tsnet tsnet: cleanup resources upon start failure (#5301) 2 years ago
tstest all: use syncs.AtomicValue 2 years ago
tstime
tsweb all: gofmt for Go 1.19 2 years ago
types tka: support rotating node-keys in node-key signatures 2 years ago
util util/deephash: require pointer in API (#5467) 2 years ago
version all: use syncs.AtomicValue 2 years ago
wf
wgengine wgengine: use a singleflight.Group to reduce status contention (#5450) 2 years ago
words
.gitattributes
.gitignore
ALPINE.txt
AUTHORS
CODE_OF_CONDUCT.md
Dockerfile
Dockerfile.base
LICENSE
Makefile Makefile: add target for wasm and make it part of check 2 years ago
PATENTS
README.md all: require Go 1.19 2 years ago
SECURITY.md
VERSION.txt
api.md
build_dist.sh
build_docker.sh
go.mod build(deps): bump github.com/u-root/u-root from 0.8.0 to 0.9.0 2 years ago
go.sum build(deps): bump github.com/u-root/u-root from 0.8.0 to 0.9.0 2 years ago
go.toolchain.branch
go.toolchain.rev all: require Go 1.19 2 years ago
pull-toolchain.sh
shell.nix shell.nix: update Go toolchain to 1.19 2 years ago
staticcheck.conf
version-embed.go

README.md

Tailscale

https://tailscale.com

Private WireGuard® networks made easy

Overview

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

The Android app is at https://github.com/tailscale/tailscale-android

The Synology package is at https://github.com/tailscale/tailscale-synology

Using

We serve packages for a variety of distros 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 that are not open source.

Building

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.

We require the latest Go release, currently Go 1.19.

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.

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.