tailcfg, control/controlclient: add GoArch, populate OSVersion on Linux

This commit is contained in:
Brad Fitzpatrick
2020-07-27 21:14:28 -07:00
parent 58b721f374
commit cd21ba0a71
5 changed files with 105 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ func fieldsOf(t reflect.Type) (fields []string) {
func TestHostinfoEqual(t *testing.T) {
hiHandles := []string{
"IPNVersion", "FrontendLogID", "BackendLogID", "OS", "OSVersion",
"DeviceModel", "Hostname", "RoutableIPs", "RequestTags", "Services",
"DeviceModel", "Hostname", "GoArch", "RoutableIPs", "RequestTags", "Services",
"NetInfo",
}
if have := fieldsOf(reflect.TypeOf(Hostinfo{})); !reflect.DeepEqual(have, hiHandles) {