From 63420d1bef3a8902d8902b8a23c47bd96881f260 Mon Sep 17 00:00:00 2001 From: "fox.cpp" Date: Sun, 9 Mar 2025 15:39:22 +0300 Subject: [PATCH] target/smtp: Fix-up default value for tls_client --- internal/target/smtp/smtp_downstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/target/smtp/smtp_downstream.go b/internal/target/smtp/smtp_downstream.go index 294e283e..b85c4ba9 100644 --- a/internal/target/smtp/smtp_downstream.go +++ b/internal/target/smtp/smtp_downstream.go @@ -121,7 +121,7 @@ func (u *Downstream) Init(cfg *config.Map) error { return nil, nil }, saslAuthDirective, &u.saslFactory) cfg.Custom("tls_client", true, false, func() (interface{}, error) { - return tls.Config{}, nil + return &tls.Config{}, nil }, tls2.TLSClientBlock, &u.tlsConfig) cfg.Duration("connect_timeout", false, false, 5*time.Minute, &u.connectTimeout) cfg.Duration("command_timeout", false, false, 5*time.Minute, &u.commandTimeout)