From: Karl Palsson Date: Wed, 16 Aug 2017 14:54:08 +0000 (+0000) Subject: mosquitto: properly use localhost instead of ipv4 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=520a5bb50f97ff1eefa0c03a42faf7c4631410ee;p=openwrt-packages.git 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 --- 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