Skip to content

Commit

Permalink
fix(smtp-sender): ensure relays without a host are excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Mar 21, 2024
1 parent b3264b9 commit 3a56ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/senders/smtp_sender.rb
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def smtp_relays
relays = Postal::Config.postal.smtp_relays
return nil if relays.nil?

relays = relays.map do |relay|
relays = relays.filter_map do |relay|
next unless relay.host.present?

SMTPClient::Server.new(relay.host, port: relay.port, ssl_mode: relay.ssl_mode)
Expand Down

0 comments on commit 3a56ec8

Please sign in to comment.