mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
tsnet: add a new error when HTTPS enabled but MagicDNC Disabled (#12364)
Fixes tailscale#12303 Signed-off-by: Jun <johnnycocoyan@hotmail.com>
This commit is contained in:
parent
cf1e6c6e55
commit
9cdb33e2a4
@ -959,6 +959,9 @@ func (s *Server) ListenTLS(network, addr string) (net.Listener, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !st.CurrentTailnet.MagicDNSEnabled {
|
||||
return nil, errors.New("tsnet: you must enable MagicDNS in the DNS page of the admin panel to proceed. See https://tailscale.com/s/https")
|
||||
}
|
||||
if len(st.CertDomains) == 0 {
|
||||
return nil, errors.New("tsnet: you must enable HTTPS in the admin panel to proceed. See https://tailscale.com/s/https")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user