From ab1ac45dcc48cdc09c7a462f64d253469f5cc087 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 30 Apr 2017 18:16:12 +0200 Subject: [PATCH] fix anonoumus login (#15) --- mosquitto/config.json | 2 +- mosquitto/mosquitto.conf | 2 +- mosquitto/run.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mosquitto/config.json b/mosquitto/config.json index 096904b..189929c 100644 --- a/mosquitto/config.json +++ b/mosquitto/config.json @@ -1,6 +1,6 @@ { "name": "Mosquitto broker", - "version": "0.2", + "version": "0.3", "slug": "mosquitto", "description": "An Open Source MQTT broker", "startup": "before", diff --git a/mosquitto/mosquitto.conf b/mosquitto/mosquitto.conf index 6852793..9734192 100644 --- a/mosquitto/mosquitto.conf +++ b/mosquitto/mosquitto.conf @@ -14,4 +14,4 @@ persistence_location /data/ ## # User settings #password_file /data/users.db -#allow_anonymous true +#allow_anonymous false diff --git a/mosquitto/run.sh b/mosquitto/run.sh index 53c5fdf..cc9531f 100644 --- a/mosquitto/run.sh +++ b/mosquitto/run.sh @@ -33,7 +33,7 @@ if [ "$SSL" == "true" ]; then fi # Allow anonymous connections -if [ "$ANONYMOUS" == "true" ]; then +if [ "$ANONYMOUS" == "false" ]; then sed -i "s/#allow_anonymous/allow_anonymous/g" /etc/mosquitto.conf fi