David Anderson
55b6753c11
wgengine/magicsock: remove use of key.{Public,Private}.
...
Updates #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-29 13:20:13 -07:00
David Anderson and Dave Anderson
c1d009b9e9
ipn/ipnstate: use key.NodePublic instead of the generic key.Public.
...
Updates #3206 .
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-29 10:00:59 -07:00
David Anderson
ebae0d95d0
Revert "Revert "tailcfg: remove reference to types/key.Public.""
...
Updates #3206
This reverts commit ef14663934 .
2021-10-29 09:38:44 -07:00
David Anderson
ef14663934
Revert "tailcfg: remove reference to types/key.Public."
...
Breaks corp unit tests.
Updates #3206
This reverts commit 94f6257fde .
2021-10-28 19:00:29 -07:00
David Anderson
94f6257fde
tailcfg: remove reference to types/key.Public.
...
Updates #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 16:16:38 -07:00
David Anderson
1f06f77dcb
derp: remove package shadowing of types/key.
...
Updates #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 16:13:28 -07:00
David Anderson
37c150aee1
derp: use new node key type.
...
Update #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 16:02:11 -07:00
David Anderson
15376f975b
types/wgkey: delete, no longer used.
...
Updates #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 14:53:38 -07:00
David Anderson
c41fe182f0
cmd/tailscaled: update depaware.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 14:28:59 -07:00
David Anderson
4d38194c21
control/controlclient: stop using wgkey.
...
Updates #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 14:22:51 -07:00
David Anderson
e03fda7ae6
wgengine/magicsock: remove test uses of wgkey.
...
Updates #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 14:17:25 -07:00
David Anderson
c9bf773312
wgengine/magicsock: replace use of wgkey with new node key type.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 11:21:52 -07:00
David Anderson
6e5175373e
types/netmap: use new node key type.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 10:44:34 -07:00
David Anderson
96ad68c5d6
ipn: remove mention of wgkey in comment.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 10:40:44 -07:00
David Anderson
bab2d92c42
tailcfg: remove use of wgkey.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 10:39:56 -07:00
David Anderson
3164c7410e
wgengine/wgcfg: remove unused helper function.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 10:38:13 -07:00
David Anderson
0c546a28ba
types/persist: use new node key type.
...
Updates #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 10:29:43 -07:00
David Anderson and Dave Anderson
a9c78910bd
wgengine/wgcfg: convert to use new node key type.
...
Updates #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 09:39:23 -07:00
David Anderson and Dave Anderson
a47158e14d
cmd/derper: use new node key type.
...
Updates #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 09:39:23 -07:00
David Anderson and Dave Anderson
bc89a796ec
types/key: add a dedicated type for node keys.
...
Complete with converters to all the other types that represent a
node key today, so the new type can gradually subsume old ones.
Updates #3206
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-28 09:16:39 -07:00
David Anderson and Dave Anderson
060ba86baa
net/portmapper: ignore IGD SSDP responses from !defaultgw
...
Now that we multicast the SSDP query, we can get IGD offers from
devices other than the current device's default gateway. We don't want
to accidentally bind ourselves to those.
Updates #3197
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-27 15:34:27 -07:00
David Anderson and Dave Anderson
4a65b07e34
net/portmapper: also send UPnP SSDP query to the SSDP multicast address.
...
Fixes #3197
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-27 15:02:03 -07:00
a320d70614
net/dns: fall back to copy+delete/truncate if moving to/from /etc/resolv.conf fails.
...
In some containers, /etc/resolv.conf is a bind-mount from outside the container.
This prevents renaming to or from /etc/resolv.conf, because it's on a different
filesystem from linux's perspective. It also prevents removing /etc/resolv.conf,
because doing so would break the bind-mount.
If we find ourselves within this environment, fall back to using copy+delete when
renaming to /etc/resolv.conf, and copy+truncate when renaming from /etc/resolv.conf.
Fixes #3000
Co-authored-by: Denton Gentry <dgentry@tailscale.com >
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-26 09:03:37 -07:00
David Anderson and Dave Anderson
04d24d3a38
net/dns: move directManager function below directManager's definition.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-26 09:03:37 -07:00
David Anderson and Dave Anderson
422ea4980f
net/dns: remove a tiny wrapper function that isn't contributing anything.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-26 09:03:37 -07:00
David Anderson
c60806b557
scripts/installer.sh: use .asc suffix for armored debian gpg key URL.
...
Fixes #2512
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-20 18:58:50 -07:00
8e3b8dbb50
scripts/installer.sh: Correct support for Oracle Linux.
...
Co-Authored-By: Jonathan Hult <jhult@mythics.com >
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-20 12:47:38 -07:00
David Anderson and Dave Anderson
1b4e007425
scripts/installer.sh: use expr for regex matches.
...
=~ doesn't work in posix shell, only in bash, and we don't use bash.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-19 19:33:52 -07:00
David Anderson and Dave Anderson
7ce9c7ce84
scripts/installer.sh: use the appropriate apt key wrangling for the distro.
...
Updates #1937
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-19 19:15:07 -07:00
David Anderson and Dave Anderson
118fe105f5
scripts/installer.sh: add a few more supported distro versions.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-19 19:15:07 -07:00
David Anderson and Dave Anderson
b956139b0c
wgengine/magicsock: track IP<>node mappings without relying on discokeys.
...
Updates #3088 .
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-18 14:58:21 -07:00
David Anderson
e7eb46bced
wgengine/magicsock: add an explicit else branch to peerMap update.
...
Clarifies that the replace+delete of peerinfo data is only when peerInfo
already exists.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-18 13:05:52 -07:00
David Anderson
1c56643136
disco: amplify comment that disco ping's NodeKey shouldn't be trusted by itself.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-18 13:05:52 -07:00
David Anderson and Dave Anderson
2aa5df7ac1
wgengine/magicsock: document and enforce that peerInfo.ep is non-nil.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-18 10:49:24 -07:00
David Anderson and Dave Anderson
521b44e653
wgengine/magicsock: move discoKey fields to the mutex-protected section.
...
Fixes #3106
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-18 10:49:24 -07:00
David Anderson and Dave Anderson
830f641c6b
wgengine/magicsock: update discokeys on netmap change.
...
Fixes #3008 .
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-10-06 14:52:47 -07:00
David Anderson and Dave Anderson
1eabb5b2d9
ipn: don't log IPN messages that may contain an authkey.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-22 20:32:49 -07:00
David Anderson and Dave Anderson
562622a32c
.github: add dependabot config to update go.mod and github actions.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-22 15:35:42 -07:00
David Anderson and Dave Anderson
4cf63b8df0
net/dnsfallback: update static map for new derp11.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-22 15:35:42 -07:00
David Anderson
18086c4cb7
go.mod: bump github.com/klauspost/compress to 1.13.6
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-22 15:11:25 -07:00
Dave Anderson and Dave Anderson
478775de6a
github: add code security scanning
2021-09-21 15:46:39 -07:00
David Anderson
efe8020dfa
wgengine/magicsock: fix race condition in tests.
...
AFAICT this was always present, the log read mid-execution was never safe.
But it seems like the recent magicsock refactoring made the race much
more likely.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-05 17:42:33 -07:00
David Anderson and Dave Anderson
69c897a763
net/dnsfallback: run go generate to pick up new derp9s.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-05 00:00:16 -07:00
David Anderson and Dave Anderson
bb6fdfb243
net/dns: fix the build on freebsd (missing default case in switch)
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-05 00:00:16 -07:00
David Anderson and Dave Anderson
b3b1c06b3a
net/dns: only restart systemd-resolved if we changed /etc/resolv.conf.
...
Reported on IRC: in an edge case, you can end up with a directManager DNS
manager and --accept-dns=false, in which case we should do nothing, but
actually end up restarting resolved whenever the netmap changes, even though
the user told us to not manage DNS.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-05 00:00:16 -07:00
David Anderson
10547d989d
net/dns: exhaustively test DNS selection paths for linux.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-04 23:40:48 -07:00
David Anderson
c071bcda33
net/dns: relax systemd-resolved detection.
...
Reported on IRC: a resolv.conf that contained two entries for
"nameserver 127.0.0.53", which defeated our "is resolved actually
in charge" check. Relax that check to allow any number of nameservers,
as long as they're all 127.0.0.53.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-04 22:32:28 -07:00
Dave Anderson and GitHub
980acc38ba
types/key: add a special key with custom serialization for control private keys ( #2792 )
...
* Revert "Revert "types/key: add MachinePrivate and MachinePublic.""
This reverts commit 61c3b98a24 .
Signed-off-by: David Anderson <danderson@tailscale.com >
* types/key: add ControlPrivate, with custom serialization.
ControlPrivate is just a MachinePrivate that serializes differently
in JSON, to be compatible with how the Tailscale control plane
historically serialized its private key.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-03 13:17:46 -07:00
David Anderson
61c3b98a24
Revert "types/key: add MachinePrivate and MachinePublic."
...
Broke the tailscale control plane due to surprise different serialization.
This reverts commit 4fdb88efe1 .
2021-09-03 11:34:34 -07:00
David Anderson and Dave Anderson
4fdb88efe1
types/key: add MachinePrivate and MachinePublic.
...
Plumb throughout the codebase as a replacement for the mixed use of
tailcfg.MachineKey and wgkey.Private/Public.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-03 10:07:15 -07:00
David Anderson
4ce091cbd8
version: use go from the current toolchain to compile in tests.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-02 20:11:20 -07:00
David Anderson and Dave Anderson
159d88aae7
go.mod: tidy.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-02 14:26:27 -07:00
David Anderson
b96159e820
go.mod: update github.com/ulikunitz/xz for https://github.com/advisories/GHSA-25xm-hr59-7c27
...
Our code is not vulnerable to the issue in question: it only happens in the decompression
path for untrusted inputs, and we only use xz as part of mkpkg, which is write-only
and operates on trusted build system outputs to construct deb and rpm packages.
Still, it's nice to keep the dependabot dashboard clean.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-02 14:02:57 -07:00
David Anderson and Dave Anderson
daf54d1253
control/controlclient: remove TS_DEBUG_USE_DISCO=only.
...
It was useful early in development when disco clients were the
exception and tailscale logs were noisier than today, but now
non-disco is the exception.
Updates #2752
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-01 18:11:32 -07:00
David Anderson and Dave Anderson
39748e9562
net/dns/resolver: authoritatively return NXDOMAIN for reverse zones we own.
...
Fixes #2774
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-01 18:11:32 -07:00
David Anderson and Dave Anderson
954064bdfe
wgengine/wgcfg/nmcfg: don't configure peers who can't DERP or disco.
...
Fixes #2770
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-01 18:11:32 -07:00
David Anderson and Dave Anderson
f90ac11bd8
wgengine: remove unnecessary magicConnStarted channel.
...
Having removed magicconn.Start, there's no need to synchronize startup
of other things to it any more.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-01 18:11:32 -07:00
David Anderson and Dave Anderson
bb10443edf
wgengine/wgcfg: use just the hexlified node key as the WireGuard endpoint.
...
The node key is all magicsock needs to find the endpoint that WireGuard
needs.
Updates #2752
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-01 15:13:21 -07:00
David Anderson and Dave Anderson
d00341360f
wgengine/magicsock: remove unused debug knob.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-01 15:13:21 -07:00
David Anderson and Dave Anderson
dfd978f0f2
wgengine/magicsock: use NodeKey, not DiscoKey, as the trigger for lazy reconfig.
...
Updates #2752
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-01 15:13:21 -07:00
David Anderson and Dave Anderson
4c27e2fa22
wgengine/magicsock: remove Start method from Conn.
...
Over time, other magicsock refactors have made Start effectively a
no-op, except that some other functions choose to panic if called
before Start.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-01 15:13:21 -07:00
David Anderson and Dave Anderson
1a899344bd
wgengine/magicsock: don't store tailcfg.Nodes alongside endpoints.
...
Updates #2752
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-01 15:13:21 -07:00
David Anderson and Dave Anderson
b2181608b5
wgengine/magicsock: eagerly create endpoints in SetNetworkMap.
...
Updates #2752
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-09-01 15:13:21 -07:00
David Anderson
44d71d1e42
wgengine/magicsock: fix race in test shutdown, again.
...
We were returning an error almost, but not quite like errConnClosed in
a single codepath, which could still trip the panic on reconfig in the
test logic.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 21:26:38 -07:00
David Anderson
f09ede9243
wgengine/magicsock: don't configure eager WireGuard handshaking in tests.
...
Our prod code doesn't eagerly handshake, because our disco layer enables
on-demand handshaking. Configuring both peers to eagerly handshake leads
to WireGuard handshake races that make TestTwoDevicePing flaky.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 17:28:12 -07:00
David Anderson and Dave Anderson
86d1c4eceb
wgengine/magicsock: ignore close races even harder.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 17:09:45 -07:00
David Anderson and Dave Anderson
8bacfe6a37
wgengine/magicsock: remove unused sendLogLimit limiter.
...
Magicsock these days gets its logs limited by the global log limiter.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 17:09:45 -07:00
David Anderson and Dave Anderson
e151b74f93
wgengine/magicsock: remove opts.SimulatedNetwork.
...
It only existed to override one test-only behavior with a
different test-only behavior, in both cases working around
an annoying feature of our CI environments. Instead, handle
that weirdness entirely in the test code, with a tweaked
TestOnlyPacketListener that gets injected.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 17:09:45 -07:00
David Anderson and Dave Anderson
58c1f7d51a
wgengine/magicsock: rename opts.PacketListener to TestOnlyPacketListener.
...
The docstring said it was meant for use in tests, but it's specifically a
special codepath that is _only_ used in tests, so make the claim stronger.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 17:09:45 -07:00
David Anderson and Dave Anderson
8049063d35
wgengine/magicsock: rename discoEndpoint to just endpoint.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 17:09:45 -07:00
David Anderson and Dave Anderson
f2d949e2db
wgengine/magicsock: fold findEndpoint into its only remaining caller.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 17:09:45 -07:00
David Anderson and Dave Anderson
fe2f89deab
wgengine/magicsock: fix rare shutdown race in test.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 14:33:07 -07:00
David Anderson and Dave Anderson
97693f2e42
wgengine/magicsock: delete legacy AddrSet endpoints.
...
Instead of using the legacy codepath, teach discoEndpoint to handle
peers that have a home DERP, but no disco key. We can still communicate
with them, but only over DERP.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 14:33:07 -07:00
David Anderson and Dave Anderson
61c62f48d9
wgengine/bench: disable unused benchmark that relies on legacy magicsock.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 14:33:07 -07:00
David Anderson and Dave Anderson
54bc3b7d97
util/deephash: remove soon to be deleted field from wgcfg.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 14:33:07 -07:00
David Anderson and Dave Anderson
923c98cd8f
types/wgkey: add TODO for a future API change.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-30 14:33:07 -07:00
David Anderson
b49d9bc74d
net/portmapper: fix "running a test" condition.
...
Fixes #2686 .
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-25 20:16:35 -07:00
David Anderson
bf8556ab86
portlist: fix build tag to build only on macOS, not macOS+iOS.
2021-08-18 16:18:02 -07:00
David Anderson
d2d55bd63c
cmd/microproxy: delete.
...
Thank goodness.
Fixes #2635
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-08-12 14:17:42 -07:00
David Anderson and Dave Anderson
d98829583a
derp: use a dedicated queue for disco traffic.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-07-12 14:23:27 -07:00
David Anderson
67158549ab
derp: actually export the new drop counter.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-07-12 13:32:04 -07:00
David Anderson and Dave Anderson
36492ace9d
derp: add counters to track the type of dropped packets.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-07-12 13:15:59 -07:00
David Anderson
c69d30cdd7
VERSION.txt: this is v1.11.0.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-24 15:45:08 -07:00
David Anderson
084d48d22d
net/dns: always proxy through quad-100 on windows 8.1.
...
Windows 8.1 incorrectly handles search paths on an interface with no
associated resolver, so we have to provide a full primary DNS config
rather than use Windows 8.1's nascent-but-present NRPT functionality.
Fixes #2237 .
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-23 17:50:19 -07:00
David Anderson and Dave Anderson
0022c3d2e2
tsweb: replace NewMux with a more flexible DebugHandler.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-16 19:00:47 -07:00
David Anderson
48c25fa36f
tsweb: fold StdHandlerOpts and StdHandler200s with StdHandler.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-15 21:55:33 -07:00
David Anderson
72343fbbec
tsweb: register expvars once at startup.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-15 21:27:54 -07:00
David Anderson
9337826011
net/dns: fix inverted test for NetworkManager version.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-15 20:53:03 -07:00
David Anderson and Dave Anderson
320cc8fa21
net/dns: verify that systemd-resolved is actually in charge.
...
It's possible to install a configuration that passes our current checks
for systemd-resolved, without actually pointing to systemd-resolved. In
that case, we end up programming DNS in resolved, but that config never
applies to any name resolution requests on the system.
This is quite a far-out edge case, but there's a simple additional check
we can do: if the header comment names systemd-resolved, there should be
a single nameserver in resolv.conf pointing to 127.0.0.53. If not, the
configuration should be treated as an unmanaged resolv.conf.
Fixes #2136 .
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-15 19:52:02 -07:00
David Anderson
e7164425b3
net/dns: don't use NetworkManager for DNS on very old NetworkManagers.
...
Fixes #1945 .
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-15 15:34:35 -07:00
David Anderson
ac07ff43bf
cmd/tailscaled: start after NetworkManager and systemd-resolved.
...
The dependency is a "soft" ordering dependency only, meaning that
tailscaled will start after those services if those services were
going to be run anyway, but doesn't force either of them to run.
That's why it's safe to specify this dependency unconditionally,
even for systems that don't run those services.
Updates #2127 .
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-15 14:25:44 -07:00
Dave Anderson and GitHub
144c68b80b
net/dns: avoid using NetworkManager as much as possible. ( #1945 )
...
Addresses #1699 as best as possible.
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-10 10:46:08 -04:00
David Anderson and Dave Anderson
8236464252
packages/deb: add package to extract metadata from .deb files.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-07 16:22:23 -07:00
David Anderson and Dave Anderson
1c6946f971
cmd/mkpkg: allow zero files in a package.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-07 16:22:23 -07:00
David Anderson and Dave Anderson
7fab244614
net/dns/resolver: don't spam logs on EHOSTUNREACH.
...
Fixes #1719 .
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-07 10:45:29 -07:00
David Anderson
aa6abc98f3
build_dist.sh: fix after the change to version stamping.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-03 13:14:32 -07:00
David Anderson
5088af68cf
version: remove all the redo stuff, only support embedding via go ldflags.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-06-02 14:17:46 -07:00
David Anderson
33bc06795b
go.mod: update for corp resync.
2021-05-31 21:47:37 -07:00
David Anderson and Dave Anderson
c54cc24e87
util/dnsname: make ToFQDN take exactly 0 or 1 allocs for everything.
...
name old time/op new time/op delta
ToFQDN/www.tailscale.com.-32 9.55ns ± 2% 12.13ns ± 3% +27.03% (p=0.000 n=10+10)
ToFQDN/www.tailscale.com-32 86.3ns ± 1% 40.7ns ± 1% -52.86% (p=0.000 n=10+9)
ToFQDN/.www.tailscale.com-32 86.5ns ± 1% 40.4ns ± 1% -53.29% (p=0.000 n=10+9)
ToFQDN/_ssh._tcp.www.tailscale.com.-32 12.8ns ± 2% 14.7ns ± 2% +14.24% (p=0.000 n=9+10)
ToFQDN/_ssh._tcp.www.tailscale.com-32 104ns ± 1% 45ns ± 0% -57.16% (p=0.000 n=10+9)
name old alloc/op new alloc/op delta
ToFQDN/www.tailscale.com.-32 0.00B 0.00B ~ (all equal)
ToFQDN/www.tailscale.com-32 72.0B ± 0% 24.0B ± 0% -66.67% (p=0.000 n=10+10)
ToFQDN/.www.tailscale.com-32 72.0B ± 0% 24.0B ± 0% -66.67% (p=0.000 n=10+10)
ToFQDN/_ssh._tcp.www.tailscale.com.-32 0.00B 0.00B ~ (all equal)
ToFQDN/_ssh._tcp.www.tailscale.com-32 112B ± 0% 32B ± 0% -71.43% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
ToFQDN/www.tailscale.com.-32 0.00 0.00 ~ (all equal)
ToFQDN/www.tailscale.com-32 2.00 ± 0% 1.00 ± 0% -50.00% (p=0.000 n=10+10)
ToFQDN/.www.tailscale.com-32 2.00 ± 0% 1.00 ± 0% -50.00% (p=0.000 n=10+10)
ToFQDN/_ssh._tcp.www.tailscale.com.-32 0.00 0.00 ~ (all equal)
ToFQDN/_ssh._tcp.www.tailscale.com-32 2.00 ± 0% 1.00 ± 0% -50.00% (p=0.000 n=10+10)
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-05-31 21:13:50 -07:00
David Anderson and Dave Anderson
d7f6ef3a79
util/dnsname: add a benchmark for ToFQDN.
...
Signed-off-by: David Anderson <danderson@tailscale.com >
2021-05-31 21:13:50 -07:00