mirror of
https://github.com/coder/code-server.git
synced 2026-05-13 07:47:26 +02:00
Add flag to enable permessage-deflate
This commit is contained in:
@@ -8,6 +8,7 @@ import { createApp, ensureAddress } from "./app"
|
||||
import {
|
||||
AuthType,
|
||||
DefaultedArgs,
|
||||
Feature,
|
||||
optionDescriptions,
|
||||
parse,
|
||||
readConfigFile,
|
||||
@@ -146,6 +147,21 @@ const main = async (args: DefaultedArgs): Promise<void> => {
|
||||
}
|
||||
}
|
||||
|
||||
if (args.enable && args.enable.length > 0) {
|
||||
logger.info("Enabling the following experimental features:")
|
||||
args.enable.forEach((feature) => {
|
||||
if (Object.values(Feature).includes(feature as Feature)) {
|
||||
logger.info(` - "${feature}"`)
|
||||
} else {
|
||||
logger.error(` X "${feature}" (unknown feature)`)
|
||||
}
|
||||
})
|
||||
// TODO: Could be nice to add wrapping to the logger?
|
||||
logger.info(
|
||||
" The code-server project does not provide stability guarantees or commit to fixing bugs relating to these experimental features. When filing bug reports, please ensure that you can reproduce the bug with all experimental features turned off.",
|
||||
)
|
||||
}
|
||||
|
||||
if (!args.socket && args.open) {
|
||||
// The web socket doesn't seem to work if browsing with 0.0.0.0.
|
||||
const openAddress = serverAddress.replace("://0.0.0.0", "://localhost")
|
||||
|
||||
Reference in New Issue
Block a user