Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8e0e29

Browse files
committed
disable on bg hostname
1 parenta4b2410 commitb8e0e29

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/main/kotlin/com/coder/gateway/cli/CoderCLIManager.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class CoderCLIManager(
255255
val startBlock="# --- START CODER JETBRAINS$host"
256256
val endBlock="# --- END CODER JETBRAINS$host"
257257
val isRemoving= workspaceNames.isEmpty()
258-
valproxyArgs=
258+
valbaseArgs=
259259
listOfNotNull(
260260
escape(localBinaryPath.toString()),
261261
"--global-config",
@@ -265,8 +265,9 @@ class CoderCLIManager(
265265
"ssh",
266266
"--stdio",
267267
if (settings.disableAutostart&& feats.disableAutostart)"--disable-autostart"elsenull,
268-
if (feats.reportWorkspaceUsage)"--usage-app=jetbrains"elsenull,
269268
)
269+
val proxyArgs= baseArgs+ listOfNotNull(if (feats.reportWorkspaceUsage)"--usage-app=jetbrains"elsenull)
270+
val backgroundProxyArgs= baseArgs+ listOfNotNull(if (feats.reportWorkspaceUsage)"--usage-app=disable"elsenull)
270271
val extraConfig=
271272
if (settings.sshConfigOptions.isNotBlank()) {
272273
"\n"+ settings.sshConfigOptions.prependIndent("")
@@ -293,7 +294,7 @@ class CoderCLIManager(
293294
.plus(
294295
"""
295296
Host${getBackgroundHostName(deploymentURL, it)}
296-
ProxyCommand${proxyArgs.joinToString("")}$it
297+
ProxyCommand${backgroundProxyArgs.joinToString("")}$it
297298
ConnectTimeout 0
298299
StrictHostKeyChecking no
299300
UserKnownHostsFile /dev/null

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp