Skip to content

Commit

Permalink
Account for disabled proxy in startup logs
Browse files Browse the repository at this point in the history
  • Loading branch information
code-asher committed Jul 27, 2023
1 parent 2ffbcfd commit e37b352
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/node/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ export const runCodeServer = async (
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")}:`)
args["proxy-domain"].forEach((domain) => logger.info(` - ${domain}`))
}
Expand Down

0 comments on commit e37b352

Please sign in to comment.