jinnrry 2 년 전
부모
커밋
74e5acbd43
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      server/controllers/setup.go

+ 2 - 0
server/controllers/setup.go

@@ -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]