Skip to content

Commit

Permalink
SNI support: #1049
Browse files Browse the repository at this point in the history
  • Loading branch information
ewan-chalmers authored Feb 18, 2020
1 parent b77241c commit 3c63df8
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 3c63df8

Please sign in to comment.