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 {
110
110
*/
111
111
val sshConfigOptions: String?
112
112
113
+
114
+ /* *
115
+ * The path where network information for SSH hosts are stored
116
+ */
117
+ val networkInfoDir: String
118
+
113
119
/* *
114
120
* The default URL to show in the connection window.
115
121
*/
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ class CoderSettingsStore(
65
65
override val sshLogDirectory: String? get() = store[SSH_LOG_DIR ]
66
66
override val sshConfigOptions: String?
67
67
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()
68
73
69
74
/* *
70
75
* 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"
38
38
39
39
internal const val SSH_CONFIG_OPTIONS = " sshConfigOptions"
40
40
41
+ internal const val NETWORK_INFO_DIR = " networkInfoDir"
42
+
You can’t perform that action at this time.
0 commit comments