From 520a5bb50f97ff1eefa0c03a42faf7c4631410ee Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 16 Aug 2017 14:54:08 +0000 Subject: [PATCH] mosquitto: properly use localhost instead of ipv4 On some environments, connecting to localhost was resolving to ::1, which didn't match the bind to the explicit 127.0.0.1. Signed-off-by: Karl Palsson --- net/mosquitto/files/etc/init.d/mosquitto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mosquitto/files/etc/init.d/mosquitto b/net/mosquitto/files/etc/init.d/mosquitto index dbe8d1518..a84bceeaf 100755 --- a/net/mosquitto/files/etc/init.d/mosquitto +++ b/net/mosquitto/files/etc/init.d/mosquitto @@ -56,7 +56,7 @@ convert_mosq_general() { config_get_bool no_remote "$1" no_remote_access 0 if [ "$no_remote" -eq 1 ]; then - echo "bind_address 127.0.0.1" >> $TCONF + echo "bind_address localhost" >> $TCONF fi config_get port "$1" port 1883