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
Brad Fitzpatrick 3e493e0417 wgengine: fix lazy wireguard config bug on sent packet minute+ later
A comparison operator was backwards.

The bad case went:

* device A send packet to B at t=1s
* B gets added to A's wireguard config
* B gets packet

(5 minutes pass)

* some other activity happens, causing B to expire
  to be removed from A's network map, since it's
  been over 5 minutes since sent or received activity
* device A sends packet to B at t=5m1s
* normally, B would get added back, but the old send
  time was not zero (we sent earlier!) and the time
  comparison was backwards, so we never regenerated
  the wireguard config.

This also refactors the code for legibility and moves constants up
top, with comments.
4 years ago
.github github/workflows: add go vet ./... step 4 years ago
atomicfile atomicfile: don't Chmod on windows 4 years ago
cmd tailscaled.service: use default restart limiting 4 years ago
control/controlclient ipn: fix netmap change tracking and dns map generation (#609) 4 years ago
derp derp: remove OnlyDisco option. 4 years ago
disco wgengine/magicsock: run test DERP in mode where only disco packets allowed 4 years ago
internal/deepprint ipn: fix netmap change tracking and dns map generation (#609) 4 years ago
ipn ipn/setClientStatus: fix inverted prefsChanged check. 4 years ago
log/logheap log/logheap: appease staticcheck 4 years ago
logpolicy logpolicy: remove inaccurate comment, conditional tryFixLogStateLocation call 4 years ago
logtail logtail: return correct write size from logger.Write 4 years ago
metrics metrics: add LabelMap.GetFloat 4 years ago
net net/interfaces: don't try to fork on iOS in likelyHomeRouterIPDarwin 4 years ago
paths paths, cmd/tailscaled: on Windows, don't try to migrate from legacy relay.conf 4 years ago
portlist portlist: avoid syscall audit violation logspam on Android 4 years ago
safesocket safesocket: gofmt 4 years ago
scripts wgengine/router: split out from wgengine. 5 years ago
smallzstd smallzstd: new package that constructs zstd small encoders/decoders. 4 years ago
syncs syncs: add AtomicBool 5 years ago
tailcfg tailcfg, control/controlclient: add GoArch, populate OSVersion on Linux 4 years ago
tempfork tempfork: add lite fork of net/http/pprof w/o html/template or reflect 4 years ago
tstest wgengine/magicsock: explicitly check path discovery, add a firewall test. 4 years ago
tstime
tsweb tsweb: jsonhandler: fix content type 4 years ago
types types/logger: fix go test vet error 4 years ago
util/lineread util/lineread: add little package to read lines from files/Readers 4 years ago
version version: revert the filepath change from earlier commit 4 years ago
wgengine wgengine: fix lazy wireguard config bug on sent packet minute+ later 4 years ago
.gitattributes
.gitignore
AUTHORS
CODE_OF_CONDUCT.md
Dockerfile Dockerfile: install iproute2 in the container image. 5 years ago
LICENSE
Makefile Fix staticcheck warning, add Makefile with staticcheck targets, lock in staticcheck version in go.mod 4 years ago
PATENTS
README.md
SECURITY.md Add a SECURITY.md for vulnerability reports. 5 years ago
go.mod go mod tidy 4 years ago
go.sum go.sum: update 4 years ago

README.md

Tailscale

https://tailscale.com

Private WireGuard® networks made easy

Overview

This repository contains all the open source Tailscale code. It currently includes the Linux client.

The Linux client is currently cmd/relaynode, but will soon be replaced by cmd/tailscaled.

Using

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

Building

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

We only guarantee to support the latest Go release and any Go beta or release candidate builds (currently Go 1.14) in module mode. It might work in earlier Go versions or in GOPATH mode, but we're making no effort to keep those working.

Bugs

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

Contributing

under_construction.gif

PRs welcome, but we are still working out our contribution process and tooling.

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

About Us

We are apenwarr, bradfitz, crawshaw, danderson, dfcarney, from Tailscale Inc. You can learn more about us from our website.

WireGuard is a registered trademark of Jason A. Donenfeld.