Skip to content

Commit

Permalink
Remove tag: and do not show traffic for self
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad committed Jul 14, 2023
1 parent b7dbce5 commit 868d93b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Peer extends React.Component<TailscalePeer> {

var tags = "-"
if (this.props.Tags) {
const mapped_items = this.props.Tags?.map(t => { return t })
const mapped_items = this.props.Tags?.map(t => { return t.split(":")[1] })
tags = mapped_items.join(', ')
}

Expand Down Expand Up @@ -140,7 +140,10 @@ class Peer extends React.Component<TailscalePeer> {
: "-"
}</Td>
<Td>{this.props.OS}</Td>
<Td>{this.props.TxBytes} / {this.props.RxBytes}</Td>
<Td>{this.props.Self
? "-"
: "" + this.props.TxBytes + " / " + this.props.RxBytes
}</Td>
</Tr>);
}
}

0 comments on commit 868d93b

Please sign in to comment.