Skip to content

Commit d5fe053

Browse files
committed
Re-add a line that shouldn't have been removed
1 parent bfae843 commit d5fe053

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nmqtt.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,7 @@ proc connectBroker(ctx: MqttCtx) {.async.} =
10461046
try:
10471047
ctx.s = await asyncnet.dial(ctx.host, ctx.port)
10481048
if ctx.sslOn:
1049+
ctx.dbg "Using SSL"
10491050
when defined(ssl):
10501051
ctx.ssl = newContext(protSSLv23, CVerifyNone, ctx.sslCertFile, ctx.sslKeyFile)
10511052
wrapConnectedSocket(ctx.ssl, ctx.s, handshakeAsClient)
@@ -1103,6 +1104,7 @@ proc set_host*(ctx: MqttCtx, host: string, port: int=1883, sslOn=false) =
11031104
## Set the MQTT host
11041105
ctx.host = host
11051106
ctx.port = Port(port)
1107+
ctx.sslOn = sslOn
11061108

11071109
proc set_ssl_certificates*(ctx: MqttCtx, sslCertFile: string, sslKeyFile: string) =
11081110
ctx.sslCertFile = sslCertFile

0 commit comments

Comments
 (0)