summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-14 11:01:03 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-11-14 11:01:03 +0100
commitd9dd452748f524efc3e172f7181a8a538b9143c1 (patch)
treec5f85b6282e885a9a37ad479e44e160eecd74db4 /client
parent25fdd94671d6b090992e8086334852dfd68f16d8 (diff)
Client + Server: Refresh the endpoints before checking for a valid profile
Diffstat (limited to 'client')
-rw-r--r--client/server.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/server.go b/client/server.go
index b7bbb2a..5e1c31f 100644
--- a/client/server.go
+++ b/client/server.go
@@ -79,6 +79,13 @@ func (client *Client) getConfig(
)
}
+ // Refresh the server endpoints
+ // This is best effort
+ endpointErr := server.RefreshEndpoints(chosenServer)
+ if endpointErr != nil {
+ client.Logger.Warning(fmt.Sprintf("failed to refresh server endpoints: %v", endpointErr))
+ }
+
config, configType, configErr := client.retryConfigAuth(chosenServer, preferTCP)
if configErr != nil {
return "", "", types.NewWrappedError(errorMessage, configErr)