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
Anton Tolchanov c070d39287 cmd/tailscaled: handle tailscaled symlink on macOS
When Tailscale is installed via Homebrew, `/usr/local/bin/tailscaled`
is a symlink to the actual binary.

Now when `tailscaled install-system-daemon` runs, it will not attempt
to overwrite that symlink if it already points to the tailscaled binary.
However, if executed binary and the link target differ, the path will
he overwritten - this can happen when a user decides to replace
Homebrew-installed tailscaled with a one compiled from source code.

Fixes #5353

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2 years ago
.bencher
.github
atomicfile
chirp
client/tailscale wgengine/magicsock: make debug-level stuff not logged by default 2 years ago
cmd cmd/tailscaled: handle tailscaled symlink on macOS 2 years ago
control all: fix more resource leaks found by staticmajor 2 years ago
derp
disco
docs
doctor
envknob ipn/ipnlocal: filter peers with bad signatures when tka is enabled 2 years ago
health
hostinfo
internal/tooldeps
ipn ipn/localapi: put all the LocalAPI methods into a map 2 years ago
jsondb
kube
licenses licenses: update win/apple licenses 2 years ago
log
logpolicy
logtail logtail: always record timestamps in UTC (#5732) 2 years ago
metrics all: use testingutil.MinAllocsPerRun 3 years ago
net ssh/tailssh: add TestSSHAuthFlow 2 years ago
packages/deb
paths all: fix spelling mistakes 2 years ago
portlist refactor: move from io/ioutil to io and os packages 2 years ago
prober
safesocket refactor: move from io/ioutil to io and os packages 2 years ago
scripts scripts/installer.sh: add OSMC 2 years ago
smallzstd
ssh/tailssh all: fix more resource leaks found by staticmajor 2 years ago
syncs
tailcfg tailcfg: add views for ControlDialPlan (#5843) 2 years ago
tempfork ssh/tailssh: add support for sending multiple banners 2 years ago
tka ipn/ipnlocal,tka: Fix bugs found by integration testing 2 years ago
tool
tsconst
tsnet all: fix more resource leaks found by staticmajor 2 years ago
tstest
tstime
tsweb tsweb: sort top-level expvars after removing type prefixes 2 years ago
types wgengine/wgcfg: plumb down audit log IDs (#5855) 2 years ago
util
version
wf
wgengine all: fix more resource leaks found by staticmajor 2 years ago
words
.gitattributes
.gitignore
ALPINE.txt
AUTHORS
CODE_OF_CONDUCT.md
Dockerfile Update Dockerfile to use golang:1.19-alpine 2 years ago
Dockerfile.base
LICENSE
Makefile
PATENTS
README.md
SECURITY.md
VERSION.txt
api.md
build_dist.sh
build_docker.sh
go.mod ssh/tailssh: add support for sending multiple banners 2 years ago
go.sum ssh/tailssh: add support for sending multiple banners 2 years ago
go.toolchain.branch
go.toolchain.rev go.toolchain.rev: update to Go 1.19.2 2 years ago
pull-toolchain.sh
shell.nix
staticcheck.conf
version-embed.go
version_test.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.