mirror of
https://github.com/coder/code-server.git
synced 2026-04-12 18:28:17 -05:00
Add "CODE_SERVER_HOST" environment variable (#6423)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user