Closes #2043. Thanks to ttsorensen.
@ -15,6 +15,7 @@ Broker:
already been configured on the broker. This has been fixed to send a
protocol error, as per section 3.3.4 of the specification.
- Note in the man pages that SIGHUP reloads TLS certificates. Closes #2037.
- Fix bridges not always connecting on Windows. Closes #2043.
Apps:
- Allow command line arguments to override config file options in
@ -942,7 +942,7 @@ int net__socket_connect(struct mosquitto *mosq, const char *host, uint16_t port,
if(rc2) return rc2;
}
return MOSQ_ERR_SUCCESS;
return rc;
@ -62,7 +62,7 @@ void bridge__start_all(void)
int i;
for(i=0; i<db.config->bridge_count; i++){
if(bridge__new(&(db.config->bridges[i]))){
if(bridge__new(&(db.config->bridges[i])) > 0){
log__printf(NULL, MOSQ_LOG_WARNING, "Warning: Unable to connect to bridge %s.",
db.config->bridges[i].name);