mirror of https://github.com/coder/code-server.git
Account for disabled proxy in startup logs
This commit is contained in:
parent
2ffbcfdfcb
commit
e37b35278d
|
@ -144,7 +144,9 @@ export const runCodeServer = async (
|
||||||
logger.info(" - Not serving HTTPS")
|
logger.info(" - Not serving HTTPS")
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args["proxy-domain"].length > 0) {
|
if (args["disable-proxy"]) {
|
||||||
|
logger.info(" - Proxy disabled")
|
||||||
|
} else if (args["proxy-domain"].length > 0) {
|
||||||
logger.info(` - ${plural(args["proxy-domain"].length, "Proxying the following domain")}:`)
|
logger.info(` - ${plural(args["proxy-domain"].length, "Proxying the following domain")}:`)
|
||||||
args["proxy-domain"].forEach((domain) => logger.info(` - ${domain}`))
|
args["proxy-domain"].forEach((domain) => logger.info(` - ${domain}`))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue