From add98b034264194b6202da98a7f79f88ca392030 Mon Sep 17 00:00:00 2001 From: Nodauf Date: Wed, 26 Jan 2022 13:38:47 +0400 Subject: [PATCH] Fix log's target for smtp --- src/modules/smtp/userEnum.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/smtp/userEnum.go b/src/modules/smtp/userEnum.go index d087ff7..6c2ec3f 100644 --- a/src/modules/smtp/userEnum.go +++ b/src/modules/smtp/userEnum.go @@ -20,8 +20,9 @@ func PrepareSMTPConnections(optionsInterface *interface{}) { if err != nil { options.Log.Fatal("Not able to retrieve the MX for the domain " + options.Domain) } - options.Target = mxrecords[0].Host + options.Target = strings.TrimRight(mxrecords[0].Host, ".") } + options.Log.Target = options.Target var nbConnectionsRequired int nbConnectionsRequired = options.Thread