Change DefaultHost to loopback address

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".
This commit is contained in:
Winni Neessen 2024-10-26 17:17:58 +02:00
parent 90e3162a22
commit 23399ed84c
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -29,7 +29,7 @@ import (
const ( const (
// DefaultHost is used as default hostname for the Client // 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 is a trash mail address to send test mails to
TestRcpt = "couttifaddebro-1473@yopmail.com" TestRcpt = "couttifaddebro-1473@yopmail.com"
// TestServerProto is the protocol used for the simple SMTP test server // TestServerProto is the protocol used for the simple SMTP test server