Skip to content

Commit

Permalink
Node Explorer: Fix issue with pre-existing config block (#276)
Browse files Browse the repository at this point in the history
Closes #270

Signed-off-by: Tyler Smalley <tyler@tailscale.com>
  • Loading branch information
tylersmalley committed Nov 21, 2023
1 parent d47cf13 commit de645ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node-explorer-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ export class NodeExplorerProvider
async (node: PeerRoot | FileExplorer) => {
const { addr, path } = extractAddrAndPath(node);

if (addr && this.configManager.config.hosts?.[addr].persistToSSHConfig !== false) {
if (addr && this.configManager.config.hosts?.[addr]?.persistToSSHConfig !== false) {
await syncSSHConfig(addr, this.configManager);
}

Expand Down

0 comments on commit de645ae

Please sign in to comment.