Commit 282a2de
committed
fix: improve ssh config logic when workspaces change
- previously, ssh reconfiguration was triggered only when new workspaces were added, and
the ssh config was generated only with the additional environments removing the configuration
for the previous ones. This means that when a new workspace is created from the web dashboard,
the old workspaces are no longer accessible via ssh from Toolbox
- now, the logic ensures ssh reconfiguration happens whenever the set of environments changes
(including additions or removals), making it more robust, and configuration happens for all
valid workspaces.
- resolves #141 parent 0968cbf commit 282a2de
File tree
2 files changed
+9
-6
lines changed- src/main/kotlin/com/coder/toolbox
2 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
0 commit comments