You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing an inconsistency in the behavior of the auto_id_prefix configuration. When running Mosquitto in Docker, the prefix is applied to server-assigned client IDs only when the host port mapped to the container's port 1883 is not 1883. If the host port is 1883, the client IDs are prefixed with auto- instead of the specified prefix.
I am experiencing an inconsistency in the behavior of the auto_id_prefix configuration. When running Mosquitto in Docker, the prefix is applied to server-assigned client IDs only when the host port mapped to the container's port 1883 is not 1883. If the host port is 1883, the client IDs are prefixed with auto- instead of the specified prefix.
Steps to reproduce:
services:
mosquitto-1:
image: eclipse-mosquitto:latest
ports:
- 1883:1883
- 8883:8883
- 9001:9001
volumes:
- ./mosquitto/mosquitto_1/mosquitto_1.conf:/mosquitto/config/mosquitto.conf
mosquitto-2:
image: eclipse-mosquitto:latest
ports:
- 1884:1883
- 8884:8883
- 9002:9001
volumes:
- ./mosquitto/mosquitto_2/mosquitto_2.conf:/mosquitto/config/mosquitto.conf
mosquitto-3:
image: eclipse-mosquitto:latest
ports:
- 1885:1883
- 8885:8883
- 9003:9001
volumes:
- ./mosquitto/mosquitto_3/mosquitto_3.conf:/mosquitto/config/mosquitto.conf
listener 1883
auto_id_prefix
allow_anonymous true
Start the containers
Connect a client with empty client id:
Expected Behavior:
The auto_id_prefix should consistently apply the specified prefix regardless of the host port mapping.
Actual Behavior:
When the host port is mapped to 1883, the prefix defaults to auto-
The text was updated successfully, but these errors were encountered: