1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-26 12:15:26 +00:00

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
}
const addr = bindAddrFromAllSources(args, configArgs || { _: [] })
const addr = bindAddrFromAllSources(configArgs || { _: [] }, cliArgs)
args.host = addr.host
args.port = addr.port