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]>
This commit is contained in:
Sonia Appasamy authored and Sonia Appasamy committed 2023-12-12 11:03:58 -05:00
1 parent 0cdc8e20d6
commit 1aee6e901d
1 file changed
+1 -1
+1 -1
View File
@@ -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
}