Skip to content

Commit

Permalink
Add SNI support
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasnordquist committed Jun 20, 2019
1 parent 0378460 commit 2614549
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/DataSource/MqttSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ export class MqttSource implements DataSource<MqttOptions> {
username: options.username,
password: options.password,
clientId: options.clientId,
servername: options.tls ? url.host : undefined,
ca: options.certificateAuthority ? Buffer.from(options.certificateAuthority, 'base64') : undefined,
})
} as any)

this.client = client

Expand Down

0 comments on commit 2614549

Please sign in to comment.