Skip to content

Commit 9918f08

Browse files
FLchsmscdex
authored andcommitted
Connection: default TLS servername to hostname
Fixes: #724 Fixes: #866
1 parent 7dbc664 commit 9918f08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Connection.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ Connection.prototype.connect = function() {
117117

118118
if (config.tls) {
119119
tlsOptions = {};
120+
// servername must be set to prevent issues with some imap server and openssl 1.1.1
121+
tlsOptions.servername = config.host;
120122
tlsOptions.host = config.host;
121123
// Host name may be overridden the tlsOptions
122124
for (var k in config.tlsOptions)

0 commit comments

Comments
 (0)