فهرست منبع

tsnet: add a new error when HTTPS enabled but MagicDNC Disabled (#12364)

Fixes tailscale#12303

Signed-off-by: Jun <[email protected]>
Jun 1 سال پیش
والد
کامیت
9cdb33e2a4
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      tsnet/tsnet.go

+ 3 - 0
tsnet/tsnet.go

@@ -959,6 +959,9 @@ func (s *Server) ListenTLS(network, addr string) (net.Listener, error) {
 	if err != nil {
 	if err != nil {
 		return nil, err
 		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 {
 	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")
 		return nil, errors.New("tsnet: you must enable HTTPS in the admin panel to proceed. See https://tailscale.com/s/https")
 	}
 	}