mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
Merge branch 'dk/send-email-avoid-net-smtp-ssl-when-able'
A hotfix to a topic in 'master'. * dk/send-email-avoid-net-smtp-ssl-when-able: send-email: Net::SMTP::starttls was introduced in v2.34
This commit is contained in:
commit
b85b88141e
|
@ -1355,7 +1355,7 @@ sub send_message {
|
|||
}
|
||||
|
||||
require Net::SMTP;
|
||||
my $use_net_smtp_ssl = version->parse($Net::SMTP::VERSION) < version->parse("1.28");
|
||||
my $use_net_smtp_ssl = version->parse($Net::SMTP::VERSION) < version->parse("2.34");
|
||||
$smtp_domain ||= maildomain();
|
||||
|
||||
if ($smtp_encryption eq 'ssl') {
|
||||
|
|
Loading…
Reference in a new issue