Skip to content

Commit

Permalink
Update ARI even if server doesn't send Retry-After
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed May 6, 2024
1 parent 8e7d337 commit e2a2d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acme/ari.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ func (ari RenewalInfo) NeedsRefresh() bool {
return false
}
if ari.RetryAfter == nil {
// TODO: this seems like an unlikely condition, but we could be smart in its absence, like based on the window...
return false
// TODO: this seems like an unlikely condition, but we could be smart in its absence, like based on the window... play it safe for now though and just always be updating I guess
return true
}
return time.Now().After(*ari.RetryAfter)
}
Expand Down

0 comments on commit e2a2d1a

Please sign in to comment.