Upgrade smtp library, but not tests

This commit is contained in:
binwiederhier 2023-01-04 09:31:32 -05:00
parent e12bc6aa19
commit 36c0be1097
3 changed files with 23 additions and 25 deletions

View file

@ -57,8 +57,8 @@ func logHTTPPrefix(v *visitor, r *http.Request) string {
return fmt.Sprintf("%s HTTP %s %s", v.ip, r.Method, requestURI)
}
func logSMTPPrefix(state *smtp.ConnectionState) string {
return fmt.Sprintf("%s/%s SMTP", state.Hostname, state.RemoteAddr.String())
func logSMTPPrefix(conn *smtp.Conn) string {
return fmt.Sprintf("%s/%s SMTP", conn.Hostname(), conn.Conn().RemoteAddr().String())
}
func renderHTTPRequest(r *http.Request) string {