Archived
1
0

Add "CODE_SERVER_HOST" environment variable (#6423)

This commit is contained in:
Cyanoure
2023-09-09 00:50:11 +02:00
committed by GitHub
parent 913fc30866
commit a76e5241b6
2 changed files with 47 additions and 0 deletions

View File

@ -732,6 +732,9 @@ export function bindAddrFromArgs(addr: Addr, args: UserProvidedArgs): Addr {
if (args["bind-addr"]) {
addr = parseBindAddr(args["bind-addr"])
}
if (process.env.CODE_SERVER_HOST) {
addr.host = process.env.CODE_SERVER_HOST
}
if (args.host) {
addr.host = args.host
}