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:
parent
43acdcdd54
commit
520a5bb50f
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ convert_mosq_general() {
|
||||||
|
|
||||||
config_get_bool no_remote "$1" no_remote_access 0
|
config_get_bool no_remote "$1" no_remote_access 0
|
||||||
if [ "$no_remote" -eq 1 ]; then
|
if [ "$no_remote" -eq 1 ]; then
|
||||||
echo "bind_address 127.0.0.1" >> $TCONF
|
echo "bind_address localhost" >> $TCONF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
config_get port "$1" port 1883
|
config_get port "$1" port 1883
|
||||||
|
|
Loading…
Reference in a new issue