Browse Source

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>
lilik-openwrt-22.03
Karl Palsson 7 years ago
parent
commit
520a5bb50f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/mosquitto/files/etc/init.d/mosquitto

+ 1
- 1
net/mosquitto/files/etc/init.d/mosquitto View File

@ -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…
Cancel
Save