add log
This commit is contained in:
parent
faa9dbc673
commit
74e5acbd43
@ -2,6 +2,7 @@ package controllers
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"io"
|
||||
"net/http"
|
||||
"pmail/config"
|
||||
@ -13,6 +14,7 @@ import (
|
||||
)
|
||||
|
||||
func AcmeChallenge(w http.ResponseWriter, r *http.Request) {
|
||||
log.Infof("AcmeChallenge: %s", r.URL.Path)
|
||||
instance := ssl.GetHttpChallengeInstance()
|
||||
token := strings.ReplaceAll(r.URL.Path, "/.well-known/acme-challenge/", "")
|
||||
auth, exist := instance.AuthInfo[token]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user