ACME申请证书时如果找不到Token,则直接跳过执行后面请求

This commit is contained in:
刘祥超
2022-06-02 15:34:14 +08:00
parent e6c7bbec06
commit 20d7e0b1bf
2 changed files with 17 additions and 14 deletions

View File

@@ -170,9 +170,10 @@ func (this *HTTPRequest) Do() {
// ACME
// TODO 需要配置是否启用ACME检测
if strings.HasPrefix(this.rawURI, "/.well-known/acme-challenge/") {
this.doACME()
this.doEnd()
return
if this.doACME() {
this.doEnd()
return
}
}
}