tailscale/cmd
Aaron Klotz 7d8feb2784 hostinfo: change Windows implementation to directly query version information using API and registry
We replace the cmd.exe invocation with RtlGetNtVersionNumbers for the first
three fields. On Windows 10+, we query for the fourth field which is available
via the registry.

The fourth field is not really documented anywhere; Firefox has been querying
it successfully since Windows 10 was released, so we can be pretty confident in
its longevity at this point.

Fixes https://github.com/tailscale/tailscale/issues/1478

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2021-11-22 12:26:42 -07:00
..
addlicense cmd/addlicense: add command to add licenseheaders to generated code 2021-07-19 15:31:56 -07:00
cloner cmd/cloner: mangle "go:generate" in cloner.go 2021-10-16 17:53:43 -07:00
derper cmd/derper: enable HSTS when serving over HTTPS. 2021-11-22 09:57:34 -08:00
derpprobe derp: use new node key type. 2021-10-28 16:02:11 -07:00
hello all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
mkpkg cmd/mkpkg: allow zero files in a package. 2021-06-07 16:22:23 -07:00
speedtest cmd: upgrade to ffcli v3 2021-09-14 13:21:55 -07:00
tailscale hostinfo: change Windows implementation to directly query version information using API and registry 2021-11-22 12:26:42 -07:00
tailscaled go.mod: bump inet.af/netstack 2021-11-21 09:18:31 -08:00
testcontrol cmd/testcontrol: add test control server 2021-08-19 17:50:48 -07:00
tsshd all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00