mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
fix lego
This commit is contained in:
@@ -92,6 +92,7 @@ func (l *Lego) SetProvider() error {
|
||||
func (l *Lego) CreateCert() (err error) {
|
||||
request := certificate.ObtainRequest{
|
||||
Domains: []string{l.config.CertDomain},
|
||||
Bundle: true,
|
||||
}
|
||||
certificates, err := l.client.Certificate.Obtain(request)
|
||||
if err != nil {
|
||||
@@ -114,7 +115,7 @@ func (l *Lego) RenewCert() error {
|
||||
res, err := l.client.Certificate.Renew(certificate.Resource{
|
||||
Domain: l.config.CertDomain,
|
||||
Certificate: file,
|
||||
}, false, false, "")
|
||||
}, true, false, "")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user