summaryrefslogtreecommitdiff
path: root/internal/server/common.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 14:29:12 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-28 14:29:12 +0100
commit0bfb35520d7e138e6219e550187e0b55bc8a29ac (patch)
treea087049edae0ff932bc7a14fef323783b26a2ff1 /internal/server/common.go
parent59e6ccd051452162fab852a25deb4f0f8a9e22b2 (diff)
Formatting: Run gofumpt -w
Diffstat (limited to 'internal/server/common.go')
-rw-r--r--internal/server/common.go12
1 files changed, 6 insertions, 6 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"))
}