forked from Ivasoft/traefik
Update comment to reflect the code (#1087)
This commit is contained in:
committed by
Vincent Demeester
parent
2b00cdf330
commit
02473328e7
@@ -193,7 +193,7 @@ func (dc *DomainsCertificate) needRenew() bool {
|
||||
// If there's an error, we assume the cert is broken, and needs update
|
||||
return true
|
||||
}
|
||||
// <= 7 days left, renew certificate
|
||||
// <= 30 days left, renew certificate
|
||||
if crt.NotAfter.Before(time.Now().Add(time.Duration(24 * 30 * time.Hour))) {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user