未验证 提交 bfe731f4 编写于 作者: A Anmol Sethi

Ensure socket is undefined with --coder-bind

上级 c4f1c053
......@@ -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")
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册