Skip to content

Commit

Permalink
fix: make client id unique
Browse files Browse the repository at this point in the history
  • Loading branch information
fritterhoff committed May 28, 2024
1 parent 6e7cc65 commit fbb93f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme/mqtt/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func Connect(acmeDB acme.DB, host, user, password, organization string) (validat
opts.PingTimeout = time.Second // local broker so response should be quick
opts.ConnectRetry = true
opts.AutoReconnect = true
opts.ClientID = "acme"
opts.ClientID = fmt.Sprintf("acme-%s", organization)
opts.Username = user
opts.Password = password
opts.AddBroker(fmt.Sprintf("ssl://%s:8883", host))
Expand Down

0 comments on commit fbb93f1

Please sign in to comment.