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

This commit is contained in:
GoEdgeLab
2022-06-02 15:34:14 +08:00
parent 14127fcd78
commit 254469857b
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
}
}
}