From 937104b3cd0a08a5943b359fd1bc2012de43ff85 Mon Sep 17 00:00:00 2001 From: Julian Strobl Date: Thu, 25 Apr 2024 13:50:22 +0200 Subject: [PATCH] fix: mqtt default config (#382) * fix: mqtt-tls in default config template - panic: json: cannot unmarshal string into Go struct field Config.mqtt-tls of type bool * fix: default mqtt port - since MqttTLS is set to true by default we need to use the mqtts port as well. panic: network Error : EOF Signed-off-by: Julian Strobl --- config/config.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index c726e3f..a54d205 100644 --- a/config/config.go +++ b/config/config.go @@ -23,8 +23,7 @@ mqtt-domain = "{{ .PlmntConfig.MqttDomain }}" mqtt-port = {{ .PlmntConfig.MqttPort }} mqtt-user = "{{ .PlmntConfig.MqttUser }}" mqtt-password = "{{ .PlmntConfig.MqttPassword }}" -mqtt-tls = "{{ .PlmntConfig.MqttTLS }}" - +mqtt-tls = {{ .PlmntConfig.MqttTLS }} ` // Config defines Planetmint's top level configuration @@ -62,7 +61,7 @@ func DefaultConfig() *Config { RPCWallet: "rpcwallet", ValidatorAddress: "plmnt1w5dww335zhh98pzv783hqre355ck3u4w4hjxcx", MqttDomain: "testnet-mqtt.rddl.io", - MqttPort: 1885, + MqttPort: 1886, MqttUser: "user", MqttPassword: "password", MqttTLS: true,