Fix bind address priority

Broke when converting to a loop.
This commit is contained in:
Asher 2020-11-04 17:07:03 -06:00
parent 8066da12fe
commit 75b93f9dc5
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -414,7 +414,7 @@ export async function setDefaults(cliArgs: Args, configArgs?: ConfigArgs): Promi
args.auth = AuthType.Password args.auth = AuthType.Password
} }
const addr = bindAddrFromAllSources(args, configArgs || { _: [] }) const addr = bindAddrFromAllSources(configArgs || { _: [] }, cliArgs)
args.host = addr.host args.host = addr.host
args.port = addr.port args.port = addr.port