Skip to content

Commit e8ccedb

Browse files
committed
Add "/MP_verify_" challenge
1 parent 9ea2299 commit e8ccedb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

service/proxy.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ func handleRequest(w http.ResponseWriter, r *http.Request) {
152152
return
153153
}
154154

155+
if strings.HasPrefix(r.RequestURI, "/MP_verify_") {
156+
challengeMap := site.GetChallengeMap()
157+
for path, value := range challengeMap {
158+
if r.RequestURI == fmt.Sprintf("/%s", path) {
159+
responseOk(w, value)
160+
return
161+
}
162+
}
163+
}
164+
155165
if site.SslMode == "HTTPS Only" {
156166
// This domain only supports https but receive http request, redirect to https
157167
if r.TLS == nil {

0 commit comments

Comments
 (0)