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>
pull/10566/head
Sonia Appasamy 12 months ago committed by Sonia Appasamy
parent 0cdc8e20d6
commit 1aee6e901d

@ -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
}

Loading…
Cancel
Save