From 75b93f9dc520ae8bc9256d3c6b02a6dcb8deebdc Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 4 Nov 2020 17:07:03 -0600 Subject: [PATCH] Fix bind address priority Broke when converting to a loop. --- src/node/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/cli.ts b/src/node/cli.ts index fcb74d805..7a5b8d611 100644 --- a/src/node/cli.ts +++ b/src/node/cli.ts @@ -414,7 +414,7 @@ export async function setDefaults(cliArgs: Args, configArgs?: ConfigArgs): Promi args.auth = AuthType.Password } - const addr = bindAddrFromAllSources(args, configArgs || { _: [] }) + const addr = bindAddrFromAllSources(configArgs || { _: [] }, cliArgs) args.host = addr.host args.port = addr.port