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 <karlp@etactica.com>
This commit is contained in:
Karl Palsson 2017-08-16 14:54:08 +00:00
parent 43acdcdd54
commit 520a5bb50f
1 changed files with 1 additions and 1 deletions

View File

@ -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