Skip to content

Commit f7d94fe

Browse files
committed
Rename to forwarding
1 parent 3b1b0c4 commit f7d94fe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/AbstractGitpodPortForwardingService.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ abstract class AbstractGitpodPortForwardingService : GitpodPortForwardingService
9999
return completableFuture
100100
}
101101

102-
private fun isPortExposingDisabled(): Boolean {
103-
return System.getenv("GITPOD_DISABLE_JETBRAINS_LOCAL_PORT_EXPOSE")?.toBoolean() ?: false
102+
private fun isLocalPortForwardingDisabled(): Boolean {
103+
return System.getenv("GITPOD_DISABLE_JETBRAINS_LOCAL_PORT_FORWARDING")?.toBoolean() ?: false
104104
}
105105

106106
private fun syncPortsListWithClient(response: Status.PortsStatusResponse) {
107-
if (isPortExposingDisabled()) {
108-
thisLogger().warn("gitpod: Port exposing is disabled.")
107+
if (isLocalPortForwardingDisabled()) {
108+
thisLogger().warn("gitpod: Local port forwarding is disabled.")
109109
return
110110
}
111111
val ignoredPorts = ignoredPortsForNotificationService.getIgnoredPorts()

components/server/src/workspace/workspace-starter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ export class WorkspaceStarter {
15591559
client
15601560
.getValueAsync("supervisor_set_java_processor_count", false, { user })
15611561
.then((v) => newEnvVar("GITPOD_IS_SET_JAVA_PROCESSOR_COUNT", String(v))),
1562-
client.getValueAsync("disable_jetbrains_local_port_expose", false, { user }).then((v) => newEnvVar("GITPOD_DISABLE_JETBRAINS_LOCAL_PORT_EXPOSE", String(v)))
1562+
client.getValueAsync("disable_jetbrains_local_port_forwarding", false, { user }).then((v) => newEnvVar("GITPOD_DISABLE_JETBRAINS_LOCAL_PORT_FORWARDING", String(v)))
15631563
]);
15641564
sysEnvvars.push(isSetJavaXmx);
15651565
sysEnvvars.push(isSetJavaProcessorCount);

0 commit comments

Comments
 (0)