Skip to content

Commit

Permalink
Change DefaultHost to loopback address
Browse files Browse the repository at this point in the history
Updated DefaultHost from "localhost" to "127.0.0.1" in client_test.go. This change ensures consistent and direct communication with the local machine, avoiding potential issues with DNS resolution of "localhost".
  • Loading branch information
wneessen committed Oct 26, 2024
1 parent 90e3162 commit 23399ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

const (
// DefaultHost is used as default hostname for the Client
DefaultHost = "localhost"
DefaultHost = "127.0.0.1"
// TestRcpt is a trash mail address to send test mails to
TestRcpt = "[email protected]"
// TestServerProto is the protocol used for the simple SMTP test server
Expand Down

0 comments on commit 23399ed

Please sign in to comment.