mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
Test: Fix incorrect address, and give better http-api failure msg
This commit is contained in:
parent
45a1c97724
commit
db988a6e4a
|
|
@ -497,7 +497,7 @@ int http_api__start(struct mosquitto__listener *listener)
|
||||||
|
|
||||||
int rc = getaddrinfo(bind_address, service, &hints, &ainfo);
|
int rc = getaddrinfo(bind_address, service, &hints, &ainfo);
|
||||||
if(rc){
|
if(rc){
|
||||||
log__printf(NULL, MOSQ_LOG_ERR, "Unable to start http api listener.");
|
log__printf(NULL, MOSQ_LOG_ERR, "Unable to start http api listener (%s).", strerror(errno));
|
||||||
mosquitto_FREE(x509_cert);
|
mosquitto_FREE(x509_cert);
|
||||||
mosquitto_FREE(x509_key);
|
mosquitto_FREE(x509_key);
|
||||||
return MOSQ_ERR_ERRNO;
|
return MOSQ_ERR_ERRNO;
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,9 @@ broker_config = BrokerConfig(
|
||||||
ListenerConfig(port=mqtt_port),
|
ListenerConfig(port=mqtt_port),
|
||||||
ListenerConfig(
|
ListenerConfig(
|
||||||
port=http_port,
|
port=http_port,
|
||||||
address="127.0.01",
|
address="127.0.0.1",
|
||||||
protocol="http_api",
|
protocol="http_api",
|
||||||
http_dir=".",
|
http_dir=Path("."),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
allow_anonymous=True
|
allow_anonymous=True
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue