Skip to content

Commit

Permalink
SNI support: #1049 (#1054)
Browse files Browse the repository at this point in the history
Co-authored-by: ewan-chalmers <[email protected]>
  • Loading branch information
Yoseph Maguire and ewan-chalmers authored Feb 21, 2020
1 parent defa756 commit 8e7af59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/connect/tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function buildBuilder (mqttClient, opts) {
var connection
opts.port = opts.port || 8883
opts.host = opts.hostname || opts.host || 'localhost'
opts.servername = opts.host

opts.rejectUnauthorized = opts.rejectUnauthorized !== false

Expand Down

0 comments on commit 8e7af59

Please sign in to comment.