Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinnrry committed Nov 23, 2023
1 parent faa9dbc commit 74e5acb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/controllers/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package controllers

import (
"encoding/json"
log "github.com/sirupsen/logrus"
"io"
"net/http"
"pmail/config"
Expand All @@ -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]
Expand Down

0 comments on commit 74e5acb

Please sign in to comment.