Skip to content

Commit bfe731f

Browse files
committed
Ensure socket is undefined with --coder-bind
1 parent c4f1c05 commit bfe731f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/node/entry.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ const commit = pkg.commit || "development"
3838
const main = async (args: Args, cliArgs: Args, configArgs: Args): Promise<void> => {
3939
if (args["coder-bind"]) {
4040
// If we're being exposed to the cloud, we listen on a random address and disable auth.
41-
args = {
42-
...args,
41+
cliArgs = {
42+
...cliArgs,
4343
host: "localhost",
4444
port: 0,
4545
auth: AuthType.None,
46+
socket: undefined,
4647
}
4748
logger.info("coder-bind: disabling auth and listening on random localhost port")
4849
}

0 commit comments

Comments
 (0)