Skip to content

Commit 2614549

Browse files
Add SNI support
1 parent 0378460 commit 2614549

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/DataSource/MqttSource.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ export class MqttSource implements DataSource<MqttOptions> {
4444
username: options.username,
4545
password: options.password,
4646
clientId: options.clientId,
47+
servername: options.tls ? url.host : undefined,
4748
ca: options.certificateAuthority ? Buffer.from(options.certificateAuthority, 'base64') : undefined,
48-
})
49+
} as any)
4950

5051
this.client = client
5152

0 commit comments

Comments
 (0)