chirpstack / chirpstack-concentratord

Concentrator HAL daemon for LoRa gateways.
https://www.chirpstack.io/
MIT License
76 stars 56 forks source link

concentratord: it appears that an invalid device rak_2287_eu868 is set as default in config/mod.rs #188

Closed jetmonk closed 3 weeks ago

jetmonk commented 3 weeks ago

The issue is present in the latest release.

I think that chirpstack-concentratord-sx13012/src/config/mod.rs:282 sets the default device to "rak_2287_eu868" but this device is not provided in the block starting at line 325 of the same file.

Result: if started without a config file specifying the correct device, throws a panic "unexpected gateway model" in line 345.

Solution: change the default to a valid device, or tell the user the use a config file.