mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
Merge branch 'jk/send-email-ssl-errors'
Improve error reporting when SMTP TLS fails. * jk/send-email-ssl-errors: send-email: enable SSL level 1 debug output
This commit is contained in:
commit
7aaff08f39
|
@ -1332,6 +1332,13 @@ sub send_message {
|
|||
require Net::SMTP::SSL;
|
||||
$smtp_domain ||= maildomain();
|
||||
require IO::Socket::SSL;
|
||||
|
||||
# Suppress "variable accessed once" warning.
|
||||
{
|
||||
no warnings 'once';
|
||||
$IO::Socket::SSL::DEBUG = 1;
|
||||
}
|
||||
|
||||
# Net::SMTP::SSL->new() does not forward any SSL options
|
||||
IO::Socket::SSL::set_client_defaults(
|
||||
ssl_verify_params());
|
||||
|
|
Loading…
Reference in a new issue