mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
fix: 修复使用代理的情况下申请证书失败的bug
This commit is contained in:
@@ -43,7 +43,11 @@ export class AcmeService {
|
||||
}
|
||||
|
||||
async getAccountConfig(email: string): Promise<any> {
|
||||
return (await this.userContext.getObj(this.buildAccountKey(email))) || {};
|
||||
const conf = (await this.userContext.getObj(this.buildAccountKey(email))) || {};
|
||||
if (conf.accountUrl?.indexOf("letsencrypt.proxy.handsfree.work")) {
|
||||
conf.accountUrl = conf.accountUrl.replace("letsencrypt.proxy.handsfree.work", "acme-v02.api.letsencrypt.org");
|
||||
}
|
||||
return conf;
|
||||
}
|
||||
|
||||
buildAccountKey(email: string) {
|
||||
|
||||
Reference in New Issue
Block a user