mirror of https://github.com/coder/code-server.git
Fix bind address priority
Broke when converting to a loop.
This commit is contained in:
parent
8066da12fe
commit
75b93f9dc5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue