del not need config

This commit is contained in:
yuzuki999
2023-05-19 10:51:11 +08:00
parent 8b9d0fc578
commit 69eec50f81
3 changed files with 2 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ func (c *Controller) initTask() {
time.Sleep(time.Duration(c.nodeInfo.BaseConfig.PushInterval.(int)) * time.Second)
_ = c.userReportPeriodic.Start()
}()
if c.EnableTls && c.CertConfig.CertMode != "none" &&
if c.nodeInfo.Tls != 0 && c.CertConfig.CertMode != "none" &&
(c.CertConfig.CertMode == "dns" || c.CertConfig.CertMode == "http") {
c.renewCertPeriodic = &task.Periodic{
Interval: time.Hour * 24,