diff options
Diffstat (limited to 'internal/server')
| -rw-r--r-- | internal/server/common.go | 12 | ||||
| -rw-r--r-- | internal/server/secureinternet.go | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/internal/server/common.go b/internal/server/common.go index e8c8e51..e8eedd0 100644 --- a/internal/server/common.go +++ b/internal/server/common.go @@ -15,8 +15,8 @@ type Base struct { URL string `json:"base_url"` DisplayName map[string]string `json:"display_name"` SupportContact []string `json:"support_contact"` - Endpoints Endpoints `json:"endpoints"` - Profiles ProfileInfo `json:"profiles"` + Endpoints Endpoints `json:"endpoints"` + Profiles ProfileInfo `json:"profiles"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"expire_time"` Type string `json:"server_type"` @@ -35,7 +35,7 @@ type Servers struct { CustomServers InstituteAccessServers `json:"custom_servers"` InstituteServers InstituteAccessServers `json:"institute_servers"` SecureInternetHomeServer SecureInternetHomeServer `json:"secure_internet_home"` - IsType Type `json:"is_secure_internet"` + IsType Type `json:"is_secure_internet"` } type Server interface { @@ -60,7 +60,7 @@ type ProfileListInfo struct { } type ProfileInfo struct { - Current string `json:"current_profile"` + Current string `json:"current_profile"` Info ProfileListInfo `json:"info"` } @@ -503,10 +503,10 @@ func Config(server Server, clientSupportsWireguard bool, preferTCP bool) (string // A wireguard connect call needs to generate a wireguard key and add it to the config // Also the server could send back an OpenVPN config if it supports OpenVPN config, configType, configErr = wireguardGetConfig(server, preferTCP, supportsOpenVPN) - // The config only supports OpenVPN + // The config only supports OpenVPN } else if supportsOpenVPN { config, configType, configErr = openVPNGetConfig(server, preferTCP) - // The config supports no available protocol because the profile only supports WireGuard but the client doesn't + // The config supports no available protocol because the profile only supports WireGuard but the client doesn't } else { return "", "", types.NewWrappedError(errorMessage, errors.New("no supported protocol found")) } diff --git a/internal/server/secureinternet.go b/internal/server/secureinternet.go index fa4c9c9..998390d 100644 --- a/internal/server/secureinternet.go +++ b/internal/server/secureinternet.go @@ -12,7 +12,7 @@ import ( // A secure internet server which has its own OAuth tokens // It specifies the current location url it is connected to. type SecureInternetHomeServer struct { - Auth oauth.OAuth `json:"oauth"` + Auth oauth.OAuth `json:"oauth"` DisplayName map[string]string `json:"display_name"` // The home server has a list of info for each configured server location |
