Skip to content

Commit

Permalink
Fix log's target for smtp
Browse files Browse the repository at this point in the history
  • Loading branch information
nodauf committed Jan 26, 2022
1 parent 25ba18b commit add98b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/smtp/userEnum.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit add98b0

Please sign in to comment.