Skip to content

Commit

Permalink
fix: use configured client-id in client mode
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Aug 20, 2022
1 parent 8ac5247 commit 37b5b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func RunClient(conf *conf.ClientConf) {

var dispatchers []events.EventDispatch
for _, broker := range conf.Brokers {
dispatcher, err := mqtt.NewMqttDispatch(broker, conf.Host, fmt.Sprintf("dyndns/%s", conf.Host))
dispatcher, err := mqtt.NewMqttDispatch(broker, conf.ClientId, fmt.Sprintf("dyndns/%s", conf.Host))
if err != nil {
log.Fatal().Msgf("Could not build mqtt dispatcher: %v", err)
}
Expand Down

0 comments on commit 37b5b69

Please sign in to comment.