mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user