Skip to content

Commit

Permalink
target/smtp: Fix-up default value for tls_client
Browse files Browse the repository at this point in the history
  • Loading branch information
foxcpp committed Mar 9, 2025
1 parent 0e953a8 commit 63420d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/target/smtp/smtp_downstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 63420d1

Please sign in to comment.