Closed sa-wilson closed 4 years ago
Thanks @sa-wilson :+1: Besides fixing the conflict (presumable after the rename to ChirpStack), I have made a small change. I don' like having server
and servers
in the configuration file next to each other.
I have removed server
from the configfile. However, when it is set, servers will be set to []string{server}
. This means that when re-generating the file using chirpstack-gateway-bridge configfile -c old.toml > new.toml
, the server
key will be automatically migrated to servers
:slightly_smiling_face:
Awesome.
I wasn't the biggest fan of it either, but it seemed to be the easiest way to keep backwards compatibility at the time. Your way is better.
Partially covers #93
Add a new config option
servers
for a list of MQTT brokers to connect to and fall back to existingserver
option ifservers
is empty/unset.Left default of using
server
alone, as I didn't want to break existing configurations by adding a non-empty default toservers
.