Skip to content

Commit add98b0

Browse files
committed
Fix log's target for smtp
1 parent 25ba18b commit add98b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/smtp/userEnum.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ func PrepareSMTPConnections(optionsInterface *interface{}) {
2020
if err != nil {
2121
options.Log.Fatal("Not able to retrieve the MX for the domain " + options.Domain)
2222
}
23-
options.Target = mxrecords[0].Host
23+
options.Target = strings.TrimRight(mxrecords[0].Host, ".")
2424
}
25+
options.Log.Target = options.Target
2526

2627
var nbConnectionsRequired int
2728
nbConnectionsRequired = options.Thread

0 commit comments

Comments
 (0)