Browse Source

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 <[email protected]>
Sonia Appasamy 2 years ago
parent
commit
1aee6e901d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/web/auth.go

+ 1 - 1
client/web/auth.go

@@ -190,7 +190,7 @@ func (s *Server) controlSupportsCheckMode(ctx context.Context) bool {
 	if err != nil {
 	if err != nil {
 		return true
 		return true
 	}
 	}
-	controlURL, err := url.Parse(prefs.ControlURL)
+	controlURL, err := url.Parse(prefs.ControlURLOrDefault())
 	if err != nil {
 	if err != nil {
 		return true
 		return true
 	}
 	}