data: add WireGuard struct

resolves #183
This commit is contained in:
aiyion.prime 2021-02-15 15:04:11 +01:00 committed by genofire
parent 4a9089b099
commit bb0b23bff4
2 changed files with 10 additions and 0 deletions

View File

@ -80,6 +80,11 @@ type Software struct {
StatusPage *struct { StatusPage *struct {
API int `json:"api"` API int `json:"api"`
} `json:"status-page,omitempty"` } `json:"status-page,omitempty"`
WireGuard *struct {
Enabled bool `json:"enabled,omitempty"`
PublicKey string `json:"public_key,omitempty"`
Version string `json:"version,omitempty"`
} `json:"wireguard,omitempty"`
} }
// Hardware struct // Hardware struct

View File

@ -18,6 +18,11 @@
}, },
"status-page": { "status-page": {
"api": 1 "api": 1
},
"wireguard": {
"enabled": true,
"public_key": "0000000000000000000000000000000000000000000=",
"version": "1.0.20210124"
} }
}, },
"network": { "network": {