Add CS_BETA and note --coder-bind is in beta

This commit is contained in:
Anmol Sethi
2020-10-09 07:45:20 -04:00
parent 9ff37977a8
commit a5b6d080bd
2 changed files with 33 additions and 21 deletions

View File

@ -33,6 +33,8 @@ function runAgent(...args: string[]): Promise<void> {
}
export function coderCloudBind(csAddr: string, serverName = ""): Promise<void> {
logger.info("Remember --coder-bind is a beta feature and requires being accepted for testing")
logger.info("See https://github.com/cdr/code-server/discussions/2137")
// addr needs to be in host:port format.
// So we trim the protocol.
csAddr = csAddr.replace(/^https?:\/\//, "")