Do not ignore username option for mqtt output
This commit is contained in:
committed by
Cameron Sparr
parent
8464be691e
commit
e5482a5725
@@ -172,7 +172,7 @@ func (m *MQTT) createOpts() (*paho.ClientOptions, error) {
|
||||
}
|
||||
|
||||
user := m.Username
|
||||
if user == "" {
|
||||
if user != "" {
|
||||
opts.SetUsername(user)
|
||||
}
|
||||
password := m.Password
|
||||
|
||||
Reference in New Issue
Block a user