File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
src/main/kotlin/com/coder/toolbox Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ interface ReadOnlyCoderSettings {
110110 */
111111 val sshConfigOptions: String?
112112
113+
114+ /* *
115+ * The path where network information for SSH hosts are stored
116+ */
117+ val networkInfoDir: String
118+
113119 /* *
114120 * The default URL to show in the connection window.
115121 */
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ class CoderSettingsStore(
6565 override val sshLogDirectory: String? get() = store[SSH_LOG_DIR ]
6666 override val sshConfigOptions: String?
6767 get() = store[SSH_CONFIG_OPTIONS ].takeUnless { it.isNullOrEmpty() } ? : env.get(CODER_SSH_CONFIG_OPTIONS )
68+ override val networkInfoDir: String
69+ get() = store[NETWORK_INFO_DIR ].takeUnless { it.isNullOrEmpty() } ? : getDefaultGlobalDataDir()
70+ .resolve(" network-info" )
71+ .normalize()
72+ .toString()
6873
6974 /* *
7075 * The default URL to show in the connection window.
Original file line number Diff line number Diff line change @@ -38,3 +38,5 @@ internal const val SSH_LOG_DIR = "sshLogDir"
3838
3939internal const val SSH_CONFIG_OPTIONS = " sshConfigOptions"
4040
41+ internal const val NETWORK_INFO_DIR = " networkInfoDir"
42+
You can’t perform that action at this time.
0 commit comments