fix: bugs

This commit is contained in:
Yuzuki616
2025-04-20 12:04:31 +09:00
parent 73baff9250
commit 05c787100e
13 changed files with 270 additions and 93 deletions

View File

@@ -3,6 +3,9 @@ package handler
import "fmt"
func (h *Handler) RenewCertHandle() error {
if !h.needTls {
return nil
}
err := h.acme.RenewCert(h.Options.Cert.CertPath, h.Options.Cert.KeyPath, h.Options.Cert.Domain)
if err != nil {
return fmt.Errorf("renew cert error: %w", err)