Mark Self

main
Gerard Braad 2023-06-23 12:00:41 +08:00
parent 7df29cbce3
commit f853605898
2 changed files with 12 additions and 8 deletions

View File

@ -61,6 +61,7 @@ export class Application extends React.Component<ApplicationProps, ApplicationSt
</Tr>
</Thead>
<Tbody>
{ this.state.Status.Self.Self = true }
<Peer {...this.state.Status.Self} />
{
Object.values(this.state.Status.Peer)
@ -107,7 +108,9 @@ class Peer extends React.Component<TailscalePeer> {
tags
}
</Td>
<Td>{this.props.Active
<Td>{this.props.Self
? "Self"
: this.props.Active
? this.props.CurAddr != ""
? "Direct"
: "Relay: " + this.props.Relay

View File

@ -18,6 +18,7 @@ export enum OS {
}
export type TailscalePeer = {
Self: boolean;
ID: string;
PublicKey: string;
HostName: string;