pull/6287/merge
Petter Jacobsen 2023-06-19 11:30:32 -04:00 committed by GitHub
commit 101cc67eee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -150,6 +150,11 @@ func runStatus(ctx context.Context, args []string) error {
var buf bytes.Buffer
f := func(format string, a ...any) { fmt.Fprintf(&buf, format, a...) }
if st.CurrentTailnet != nil {
f("# Tailnet name: %s\n\n", st.CurrentTailnet.MagicDNSSuffix)
}
printPS := func(ps *ipnstate.PeerStatus) {
f("%-15s %-20s %-12s %-7s ",
firstIPString(ps.TailscaleIPs),

View File

@ -500,6 +500,9 @@ table tbody tr:nth-child(even) td { background-color: #f5f5f5; }
ips = append(ips, ip.String())
}
f("<p>Tailscale IP: %s", strings.Join(ips, ", "))
if st.CurrentTailnet != nil {
f("<p>Tailnet Name: %s", st.CurrentTailnet.MagicDNSSuffix)
}
f("<table>\n<thead>\n")
f("<tr><th>Peer</th><th>OS</th><th>Node</th><th>Owner</th><th>Rx</th><th>Tx</th><th>Activity</th><th>Connection</th></tr>\n")