diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-06 12:53:56 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-06 12:53:56 +0200 |
| commit | 0d00fec9154bfd3f4dffb3d017d7c3eb795e4332 (patch) | |
| tree | b28faa882644408b0fc5faed4f9fb259cb4dd49b | |
| parent | b9d680d1450448cacefd1ff4277c1a6ad875df8c (diff) | |
State + Discovery: Save the discovery data in the config JSON
| -rw-r--r-- | internal/types/server.go | 8 | ||||
| -rw-r--r-- | state.go | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/internal/types/server.go b/internal/types/server.go index 18d242a..a9c46b2 100644 --- a/internal/types/server.go +++ b/internal/types/server.go @@ -12,8 +12,8 @@ import ( type DiscoveryOrganizations struct { Version uint64 `json:"v"` List []DiscoveryOrganization `json:"organization_list"` - Timestamp time.Time `json:"-"` - RawString string `json:"-"` + Timestamp time.Time `json:"go_timestamp"` + RawString string `json:"go_raw_string"` } type DiscoveryOrganization struct { @@ -30,8 +30,8 @@ type DiscoveryOrganization struct { type DiscoveryServers struct { Version uint64 `json:"v"` List []DiscoveryServer `json:"server_list"` - Timestamp time.Time `json:"-"` - RawString string `json:"-"` + Timestamp time.Time `json:"go_timestamp"` + RawString string `json:"go_raw_string"` } type DNMapOrString map[string]string @@ -21,7 +21,7 @@ type VPNState struct { Servers server.Servers `json:"servers"` // The list of servers and organizations from disco - Discovery discovery.Discovery `json:"-"` + Discovery discovery.Discovery `json:"discovery"` // The fsm FSM fsm.FSM `json:"-"` |
