diff --git a/acmetxt.go b/acmetxt.go index 8584017..7b20c02 100644 --- a/acmetxt.go +++ b/acmetxt.go @@ -5,6 +5,7 @@ import ( "net" "github.com/satori/go.uuid" + log "github.com/sirupsen/logrus" ) // ACMETxt is the default structure for the user controlled record @@ -47,6 +48,7 @@ func (a ACMETxt) allowedFrom(ip string) bool { if len(a.AllowFrom.ValidEntries()) == 0 { return true } + log.WithFields(log.Fields{"ip": remoteIP}).Debug("Checking if update is permitted from IP") for _, v := range a.AllowFrom.ValidEntries() { _, vnet, _ := net.ParseCIDR(v) if vnet.Contains(remoteIP) {