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 <sonia@tailscale.com>
This commit is contained in:
Sonia Appasamy 2023-12-11 23:57:58 -05:00 committed by Sonia Appasamy
parent 0cdc8e20d6
commit 1aee6e901d

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
}