summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)