summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-07-14 16:26:11 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commitc060bb1dae0cb3dd943771170a6d943e25cc7c75 (patch)
treec66e0efab5a66ceee9b04311a9a037293b790795
parent25bd764f495ae1f224bdaf11eef725c76ae467c0 (diff)
Client: Return immediately on profile validity check error
-rw-r--r--client/client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/client.go b/client/client.go
index 5ff995d..f0aec9f 100644
--- a/client/client.go
+++ b/client/client.go
@@ -420,6 +420,7 @@ func (c *Client) profileCallback(ck *cookie.Cookie, srv server.Server) error {
vp, err := server.HasValidProfile(ck.Context(), srv, c.SupportsWireguard)
if err != nil {
log.Logger.Warningf("failed to determine whether the current protocol is valid with error: %v", err)
+ return err
}
if !vp {
vps, err := server.ValidProfiles(srv, c.SupportsWireguard)