summaryrefslogtreecommitdiff
path: root/types/discovery/discovery.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-05-22 14:32:38 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-05-29 14:36:10 +0200
commitef7f44e4bb7713b18e6c0ab1b6e3510075b6623b (patch)
treeb44d871f0bc6b128fcda037c43318f20424ee891 /types/discovery/discovery.go
parentc5c8bcfc53dd4d80133b39c3b130c6600e9cec99 (diff)
Discovery: return country_code to the client
Diffstat (limited to 'types/discovery/discovery.go')
-rw-r--r--types/discovery/discovery.go2
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.