mirror of
https://github.com/coder/code-server.git
synced 2024-12-25 10:41:55 +03:00
Ensure socket is undefined with --coder-bind
This commit is contained in:
parent
c4f1c053bf
commit
bfe731f4f3
@ -38,11 +38,12 @@ const commit = pkg.commit || "development"
|
||||
const main = async (args: Args, cliArgs: Args, configArgs: Args): Promise<void> => {
|
||||
if (args["coder-bind"]) {
|
||||
// If we're being exposed to the cloud, we listen on a random address and disable auth.
|
||||
args = {
|
||||
...args,
|
||||
cliArgs = {
|
||||
...cliArgs,
|
||||
host: "localhost",
|
||||
port: 0,
|
||||
auth: AuthType.None,
|
||||
socket: undefined,
|
||||
}
|
||||
logger.info("coder-bind: disabling auth and listening on random localhost port")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user