Skip to content

Commit

Permalink
Fix supervision mqtt auth (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
DTTerastar authored Dec 31, 2023
1 parent b946fe9 commit 10dc08c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/MqttCoordinator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ private async Task<IManagedMqttClient> GetClient()

c.Mqtt.Host = string.IsNullOrEmpty(data.Host) ? "localhost" : data.Host;
c.Mqtt.Port = int.TryParse(data.Port, out var i) ? i : null;
c.Mqtt.Username = data.Username;
c.Mqtt.Password = data.Password;
if (!string.IsNullOrEmpty(data.Username)) c.Mqtt.Username = data.Username;
if (!string.IsNullOrEmpty(data.Password)) c.Mqtt.Password = data.Password;
c.Mqtt.Ssl = data.Ssl;
}
catch (FlurlHttpException ex)
Expand Down

0 comments on commit 10dc08c

Please sign in to comment.