Skip to content

Commit

Permalink
Node Explorer: Exclude ShareeNode
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Smalley <[email protected]>
  • Loading branch information
Tyler Smalley committed Jul 25, 2023
1 parent 49c9af1 commit ae887d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/node-explorer-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ export class NodeExplorerProvider
}
for (const key in status.Peer) {
const p = status.Peer[key];

if (p.ShareeNode) {
continue;
}

this.peers[p.HostName] = p;

peers.push(new PeerTree({ ...p }));
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface Peer {
Online?: boolean;
TailscaleIPs: string[];
sshHostKeys?: string[];
ShareeNode?: boolean;
}

export interface Status extends WithErrors {
Expand Down

0 comments on commit ae887d4

Please sign in to comment.