Commit 55eb407
committed
fix: use port 8883 as default for MQTT when TLS is enabled
When no explicit port is specified in the MQTT broker address, the
proxy always defaults to port 1883. This causes a "Connection reset
by peer" error when TLS is enabled, since TLS brokers typically
listen on port 8883.
Default to 8883 when tls_enabled is true, 1883 otherwise.1 parent 8844217 commit 55eb407
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
| 422 | + | |
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| |||
0 commit comments