From 1aee6e901dc7af404dae188a830fe65c83cad7cf Mon Sep 17 00:00:00 2001 From: Sonia Appasamy Date: Mon, 11 Dec 2023 23:57:58 -0500 Subject: [PATCH] client/web: use prefs.ControlURLOrDefault from controlSupportsCheckMode To be safe, use `prefs.ControlURLOrDefault()` rather than the current `prefs.ControlURL` directly. Updates #10261 Signed-off-by: Sonia Appasamy --- client/web/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/web/auth.go b/client/web/auth.go index 3035a7d9a..696358f2b 100644 --- a/client/web/auth.go +++ b/client/web/auth.go @@ -190,7 +190,7 @@ func (s *Server) controlSupportsCheckMode(ctx context.Context) bool { if err != nil { return true } - controlURL, err := url.Parse(prefs.ControlURL) + controlURL, err := url.Parse(prefs.ControlURLOrDefault()) if err != nil { return true }