main
Gerard Braad 2023-06-23 00:41:38 +08:00
parent dca55e5e19
commit 23530dcb05
1 changed files with 11 additions and 0 deletions

View File

@ -49,6 +49,7 @@ export class Application extends React.Component<ApplicationProps, ApplicationSt
<Th>IP</Th> <Th>IP</Th>
<Th>Hostname</Th> <Th>Hostname</Th>
<Th>Network</Th> <Th>Network</Th>
<Th>Tags</Th>
<Th>State</Th> <Th>State</Th>
<Th>Exit node</Th> <Th>Exit node</Th>
<Th>OS</Th> <Th>OS</Th>
@ -80,6 +81,12 @@ class Peer extends React.Component<TailscalePeer> {
const hostName = name[0]; const hostName = name[0];
const network = name[1] + '.' + 'ts.net'; const network = name[1] + '.' + 'ts.net';
var tags = "-"
if(this.props.Tags) {
const mapped_items = this.props.Tags?.map(t => { return t})
tags = mapped_items.join(', ')
}
return ( return (
<Tr> <Tr>
<Td> <Td>
@ -90,6 +97,10 @@ class Peer extends React.Component<TailscalePeer> {
<Td>{ this.props.TailscaleIPs[0] }</Td> <Td>{ this.props.TailscaleIPs[0] }</Td>
<Td>{ hostName }</Td> <Td>{ hostName }</Td>
<Td>{ network }</Td> <Td>{ network }</Td>
<Td>{
tags
}
</Td>
<Td>{ this.props.Active <Td>{ this.props.Active
? this.props.CurAddr != "" ? this.props.CurAddr != ""
? "Direct" ? "Direct"