e60b433831
tailcfg: NetInfo.String: handle nil object without panicing
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2020-03-23 13:34:33 +11:00
f9cc4e8f53
tailcfg: restore MapRequest.IncludeIPv6 bool
...
Partially restores 0be475ba46
2020-03-20 08:13:47 -07:00
0be475ba46
Revert "tailcfg, controlclient, magicsock: request IPv6 endpoints, but ignore them"
...
Breaks something deep in wireguard or magicsock's brainstem, no packets at all
can flow. All received packets fail decryption with "invalid mac1".
This reverts commit 94024355ed
.
Signed-off-by: David Anderson <dave@natulte.net >
2020-03-20 03:26:17 -07:00
94024355ed
tailcfg, controlclient, magicsock: request IPv6 endpoints, but ignore them
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-03-19 21:01:52 -07:00
b1d5548fa7
tailcfg: make NodeKey.IsZero have a value receiver
2020-03-19 20:00:32 -07:00
073bb8de80
control/controlclient: don't use Node as value type
2020-03-19 13:19:02 -07:00
73cae4eb11
tailcfg, controlclient: standardize on wgcfg ShortString key printing
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2020-03-19 09:17:34 +11:00
7a57ab1793
tailcfg: add a per-peer KeepAlive field
2020-03-14 10:56:52 -05:00
7dd63abaed
tailcfg.NetInfo: add a .String() renderer.
...
For pretty printing purposes in logs.
2020-03-13 01:29:47 -04:00
b27d4c017a
magicsock, wgengine, ipn, controlclient: plumb regular netchecks to map poll
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-03-04 08:19:45 -08:00
61529ac459
controlclient, tailcfg: deliver DERP addresses in a separate field
...
We still include them directly in the controlclient network map
just where we have been. Client plumbing we can do later.
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2020-03-02 17:16:17 -05:00
bcf3719b9e
netcheck: add hairpinning detection
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-28 14:26:51 -08:00
25797c8c2a
all: rename deep "Copy" methods to conventional Go name "Clone"
2020-02-27 12:20:29 -08:00
14559340ee
Start of netcheck package & including network state in Hostinfo.
...
* adds new packet "netcheck" to do the checking of UDP, IPv6, and
nearest DERP server, and the Report type for all that (and more
in the future, probably pulling in danderson's natprobe)
* new tailcfg.NetInfo type
* cmd/tailscale netcheck subcommand (tentative name, likely to
change/move) to print out the netcheck.Report.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-27 11:05:27 -08:00
d8de11a01b
control: make Hostinfo accessed by pointer
...
Fix potential races in copying aliased slices by value.
Also few little doc updates.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-25 10:35:51 -08:00
a23a0d9c9f
tailcfg: add RegisterRequest.Copy
...
Add some docs while I'm here.
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2020-02-18 06:45:56 -05:00
47da432991
ipn: handle advertised routes provided by frontend.
...
Signed-off-by: David Anderson <dave@natulte.net >
2020-02-17 20:47:45 -08:00
769e25e37b
derp: use new types/key package
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com >
2020-02-17 13:29:49 -08:00
09fbae01a9
tailcfg: don't panic on node equal check
...
Signed-off-by: wardn <wardn@users.noreply.github.com >
2020-02-17 09:26:39 -08:00
a8d8b8719a
Move Linux client & common packages into a public repo.
2020-02-09 09:32:57 -08:00