chirpstack / chirpstack-mqtt-forwarder

ChirpStack MQTT Forwarder is a forwarder which can be installed on the gateway to forward LoRa data over MQTT.
MIT License
22 stars 13 forks source link

Bug: Default configuration on install ipk is invalid #48

Closed devleesch001 closed 9 months ago

devleesch001 commented 9 months ago

Probleme

When I install the last ipk 4.1.3 the default file of configuration have an field with wrong key.

Default configuration is :

[backend]
  enabled="semtech_udp" 

  [backend.semtech_udp]
    udp_bind="0.0.0.0:1700"

and doest work.

But in documentation the exemple is

[backend]
  enabled="semtech_udp" 

  [backend.semtech_udp]
    bind="0.0.0.0:1700"

Fix

Change at line 12 in file chirpstack-mqtt-forwarder.toml udp_bind="0.0.0.0:1700" to bind="0.0.0.0:1700"

brocaar commented 9 months ago

Yes, you are right, this should have been bind instead of udp_bind: https://github.com/chirpstack/chirpstack-mqtt-forwarder/blob/master/src/config.rs#L141