eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
8.93k stars 2.37k forks source link

`include_dir` seems not working like "in-place expanding" #3039

Open zhyang-liu opened 5 months ago

zhyang-liu commented 5 months ago

version and system

what i did

why was my include_dir not placed the last line as recommended?

I want include_dir defines a new listener, and the plugin section contains security information like username and password of database which i did not want to be exposed to outside the docker container (yes, i was using docker).

erwinlem commented 3 months ago

I stumbled on something which might be related. If I put "listener 1883 0.0.0.0" at the end of the file mosquitto tries to listen to localhost and 0.0.0.0 (which obviously fails). When I put the listener in the middle of the file it listens only on 0.0.0.0 as expected.