File tree 2 files changed +4
-1
lines changed
Coder Desktop/Coder Desktop
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,9 @@ struct VPNMenuState {
104
104
105
105
mutating func upsertWorkspace( _ workspace: Vpn_Workspace ) {
106
106
guard let wsID = UUID ( uuidData: workspace. id) else { return }
107
- workspaces [ wsID] = Workspace ( id: wsID, name: workspace. name, agents: [ ] )
107
+ // Workspace names are unique & case-insensitive, and we want to show offline workspaces
108
+ // with a valid hostname (lowercase).
109
+ workspaces [ wsID] = Workspace ( id: wsID, name: workspace. name. lowercased ( ) , agents: [ ] )
108
110
// Check if we can associate any invalid agents with this workspace
109
111
invalidAgents. filter { agent in
110
112
agent. workspaceID == workspace. id
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ final class CoderVPNService: NSObject, VPNService {
90
90
return
91
91
}
92
92
93
+ menuState. clear ( )
93
94
await startTunnel ( )
94
95
logger. debug ( " network extension enabled " )
95
96
}
You can’t perform that action at this time.
0 commit comments