Skip to content

Commit 870b8d3

Browse files
committed
impl: add the option to disable ssh wildcard configuration
It will be used later by the Coder Settings view to allow users to enable or disable SSH hostname wildcard configuration.
1 parent 546d317 commit 870b8d3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/kotlin/com/coder/gateway/settings/CoderSettings.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ open class CoderSettingsState(
9898
// around issues on macOS where it periodically wakes and Gateway
9999
// reconnects, keeping the workspace constantly up.
100100
open var disableAutostart: Boolean = getOS() == OS.MAC,
101+
102+
/**
103+
* Whether SSH wildcard config is enabled
104+
*/
105+
open var isSshWildcardConfigEnabled: Boolean = true,
106+
101107
// Extra SSH config options.
102108
open var sshConfigOptions: String = "",
103109
// An external command to run in the directory of the IDE before connecting
@@ -199,6 +205,12 @@ open class CoderSettings(
199205
val disableAutostart: Boolean
200206
get() = state.disableAutostart
201207

208+
/**
209+
* Whether SSH wildcard config is enabled
210+
*/
211+
val isSshWildcardConfigEnabled: Boolean
212+
get() = state.isSshWildcardConfigEnabled
213+
202214
/**
203215
* Extra SSH config to append to each host block.
204216
*/

0 commit comments

Comments
 (0)