tailscale/hostinfo
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
..
hostinfo_freebsd.go hostinfo: add FreeBSD support. 2021-09-06 23:12:09 -07:00
hostinfo_linux.go hostinfo: look up Synology hardware a more specific way 2021-10-04 10:28:28 -07:00
hostinfo_test.go hostinfo, control/controlclient: tell control when Ubuntu has disabled Tailscale's sources 2021-11-10 09:56:58 -08:00
hostinfo_windows.go hostinfo: change Windows implementation to directly query version information using API and registry 2021-11-22 12:26:42 -07:00
hostinfo.go hostinfo, control/controlclient: tell control when Ubuntu has disabled Tailscale's sources 2021-11-10 09:56:58 -08:00