aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2021-04-26 09:36:49 +0000
committerKarl Palsson <karlp@etactica.com>2021-04-26 09:36:49 +0000
commit9996328abd256fe6adf792d953c67c111d26e36c (patch)
tree04ed316a1be915873a117493a9c447616bd1e69c
parente0c33d94f8aa523c2311d0386da94b2075728f6c (diff)
net/mosquitto: port is optional in root config
From mosquitto 2.x, port became optional and deprecated in the config, and it was recommended that listeners be used instead. Drop the hard requirement in our config conversion script. Reported in: https://github.com/openwrt/packages/issues/15506 Signed-off-by: <karlp@etactica.com>
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mosquitto/files/etc/init.d/mosquitto b/net/mosquitto/files/etc/init.d/mosquitto
index d6f2a4495..603b988eb 100755
--- a/net/mosquitto/files/etc/init.d/mosquitto
+++ b/net/mosquitto/files/etc/init.d/mosquitto
@@ -63,8 +63,7 @@ convert_mosq_general() {
echo "bind_address localhost" >> $TCONF
fi
- config_get port "$1" port 1883
- echo "port $port" >> $TCONF
+ append_if "$1" port
append_if "$1" acl_file
append_optional_bool "$1" allow_anonymous
append_optional_bool "$1" allow_duplicate_messages