From 77af6485891707736301163ccb09a5bc4514e690 Mon Sep 17 00:00:00 2001 From: Sonny <{ID}+{username}@users.noreply.github.com> Date: Wed, 20 Sep 2023 10:20:59 +0800 Subject: [PATCH] fix: mosquitto only listens on localhost when started without a conf file Signed-off-by: Sonny --- scripts/mosquitto.conf | 2 ++ start_flash.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 scripts/mosquitto.conf diff --git a/scripts/mosquitto.conf b/scripts/mosquitto.conf new file mode 100644 index 0000000..c7b1710 --- /dev/null +++ b/scripts/mosquitto.conf @@ -0,0 +1,2 @@ +allow_anonymous true +listener 1883 \ No newline at end of file diff --git a/start_flash.sh b/start_flash.sh index be84ea1..b09ddbd 100755 --- a/start_flash.sh +++ b/start_flash.sh @@ -26,7 +26,7 @@ setup () { echo " Starting web server in a screen" $screen_with_log smarthack-web.log -S smarthack-web -m -d ./fake-registration-server.py echo " Starting Mosquitto in a screen" - $screen_with_log smarthack-mqtt.log -S smarthack-mqtt -m -d mosquitto -v + $screen_with_log smarthack-mqtt.log -S smarthack-mqtt -m -d mosquitto -v -c $PWD/scripts/mosquitto.conf echo " Starting PSK frontend in a screen" $screen_with_log smarthack-psk.log -S smarthack-psk -m -d ./psk-frontend.py -v echo " Starting Tuya Discovery in a screen"