We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94075d8 commit 298dbb2Copy full SHA for 298dbb2
lib/connect/index.js
@@ -68,8 +68,8 @@ function connect (brokerUrl, opts) {
68
opts.host = parsed.host
69
opts.protocol = parsed.protocol
70
opts.port = Number(parsed.port) || null
71
- opts.username = parsed.username
72
- opts.password = parsed.password
+ opts.username = opts.username || parsed.username
+ opts.password = opts.password || parsed.password
73
opts.searchParams = parsed.searchParams
74
opts.protocol = opts.protocol.replace(/:$/, '')
75
}
0 commit comments