diff --git a/ipn/ipnstate/ipnstate.go b/ipn/ipnstate/ipnstate.go index cc01d31fe..ac754e28f 100644 --- a/ipn/ipnstate/ipnstate.go +++ b/ipn/ipnstate/ipnstate.go @@ -186,15 +186,33 @@ type StatusUpdater interface { func (st *Status) WriteHTML(w io.Writer) { f := func(format string, args ...interface{}) { fmt.Fprintf(w, format, args...) } - f(`
`) - f("logid: %s
\n", logid) //f("opts: %s
Peer | Node | Rx | Tx | Handshake | Endpoints |
---|
Peer | Node | Owner | Rx | Tx | Handshake | Endpoints | |
---|---|---|---|---|---|---|---|
%s | %s %s %s | %v | %v | %v | ", + f("|||
%s | %s %s %s | %s | %v | %v | %v | ", peer.ShortString(), - osEmoji(ps.OS)+" "+html.EscapeString(ps.SimpleHostName()), - html.EscapeString(owner), + html.EscapeString(ps.SimpleHostName()), + osEmoji(ps.OS), ps.TailAddr, + html.EscapeString(owner), ps.RxBytes, ps.TxBytes, hsAgo, ) - f("") + f(" | ")
match := false
for _, addr := range ps.Addrs {
if addr == ps.CurAddr {
match = true
- f("%s 🔗 \n", addr) + f("🔗 %s ", addr) } else { - f("%s \n", addr) + f("%s ", addr) } } if ps.CurAddr != "" && !match { - f("%s \xf0\x9f\xa7\xb3 \n", ps.CurAddr) + f("%s \xf0\x9f\xa7\xb3 ", ps.CurAddr) } - f(" |