Brad Fitzpatrick and Brad Fitzpatrick
769e25e37b
derp: use new types/key package
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-17 13:29:49 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
997678f540
wgengine/monitor: make Close not block forever on Linux
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-17 11:39:33 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
7f5e3febe5
wgengine: move link monitor to be owned by the engine, not the router
...
And make the monitor package portable with no-op implementations on
unsupported operating systems.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-17 09:53:17 -08:00
Brad Fitzpatrick
80d5d4bdfe
ipn: fix test breakage from earlier 79295b1138
...
This test is skipped in tailscale/tailscale because it depends on
parts that haven't been released yet and was thus overlooked in the
git commit 79295b1138 cleanup.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-17 08:19:50 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
79295b1138
wgengine: simplify, change some signatures
...
* make RouterGen return an error, not take both tunname and tundev
* also remove RouteGen taking a wireguard/device.Device; currently unused
* remove derp parameter (it'll work differently)
* unexport NewUserspaceRouter in per-OS impls, add documented wrapper
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-17 08:04:31 -08:00
Brad Fitzpatrick
9dbc52bb5b
go.mod: fix wireguard-go dep
...
Fixes #59
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-15 18:50:05 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
2896be60db
Move "logger" package to under types, now that we have it.
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-14 20:23:05 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
c393f0bfae
Dockerfile: optimize incremental build a bit, copy all binaries to output
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-14 13:39:59 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
747c7d7ce2
types/empty: add Message, stop using mysterious *struct{}
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-14 13:35:49 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
587c3fcac4
control/controlclient, wgengine/magicsock: misc cleanups
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-14 09:50:08 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
fbfe474492
logpolicy: add some docs
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-14 07:51:51 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
b5346fe7b4
meta: move cross-compiled builds to their own parallel jobs
...
And add FreeBSD.
Fixes #37
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-13 11:28:07 -08:00
Brad Fitzpatrick
c773abde77
wgengine: fix nil pointer deref crash from earlier change
...
Fixes #45
2020-02-13 08:59:31 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
745c8c92b1
wgengine: fix windows build for winipcfg-go
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-12 22:05:13 -08:00
Brad Fitzpatrick
13dc12814e
cmd/tsshd: fix log text
2020-02-12 14:51:47 -08:00
Brad Fitzpatrick
d404f1caed
cmd/tsshd: add basic SSH server
2020-02-12 14:46:59 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
7e5e32775a
wgengine: flesh out some docs, minor cleanups
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-12 13:37:45 -08:00
Brad Fitzpatrick and Brad Fitzpatrick
819daf10e2
wgengine: flesh out some docs
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-12 13:37:45 -08:00
Brad Fitzpatrick
a59dc5f155
Use logger.Logf consistently. It was used in most places.
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-11 09:38:32 -08:00
Brad Fitzpatrick
fef2548981
README: https, links, mention Go version, DCO
2020-02-10 14:01:37 -08:00
Brad Fitzpatrick
516a15ee58
cmd: add import comments
...
See https://golang.org/cmd/go/#hdr-Import_path_checking
2020-02-10 13:32:37 -08:00
Brad Fitzpatrick
1f1dc3ad14
version: fix path for git describe of version for redo
2020-02-10 09:19:57 -08:00
Brad Fitzpatrick
a1fbf25f77
version: add stub; use rsc.io/goversion/version later
2020-02-10 09:00:30 -08:00