diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-05-22 14:32:38 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-05-29 14:36:10 +0200 |
| commit | ef7f44e4bb7713b18e6c0ab1b6e3510075b6623b (patch) | |
| tree | b44d871f0bc6b128fcda037c43318f20424ee891 /types | |
| parent | c5c8bcfc53dd4d80133b39c3b130c6600e9cec99 (diff) | |
Discovery: return country_code to the client
Diffstat (limited to 'types')
| -rw-r--r-- | types/discovery/discovery.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/types/discovery/discovery.go b/types/discovery/discovery.go index a6be5bf..4d92766 100644 --- a/types/discovery/discovery.go +++ b/types/discovery/discovery.go @@ -34,6 +34,8 @@ type Server struct { DisplayName MapOrString `json:"display_name,omitempty"` // Type is the type of the server, "secure_internet" or "institute_access" Type string `json:"server_type"` + // CountryCode is the country code of the server if Type is "secure_internet", e.g. nl + CountryCode string `json:"country_code"` } // MapOrString is a custom type as the upstream discovery format is a map or a value. |
