Commit e45ffab
fix(mqtt-connector): select TLS transport for mqtts:// URLs
ConnectorUrl parsing already recognised the mqtts scheme (port default 8883,
URL-embedded credentials), but rumqttc defaults to plain TCP unless a TLS
transport is set explicitly — an mqtts:// broker URL silently spoke cleartext
to port 8883 and failed the handshake. Select Transport::Tls with the
native-tls default configuration (system trust roots) when the scheme is
mqtts.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent b4e0ce0 commit e45ffab
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
180 | 186 | | |
181 | 187 | | |
182 | 188 | | |
| |||
364 | 370 | | |
365 | 371 | | |
366 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
367 | 387 | | |
0 commit comments