Account for disabled proxy in startup logs

This commit is contained in:
Asher 2023-07-27 09:26:11 -08:00
parent 2ffbcfdfcb
commit e37b35278d
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -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}`))
} }