mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
fix lego
This commit is contained in:
parent
cacc16463a
commit
6deed8034e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user