mirror of
https://github.com/tailscale/tailscale.git
synced 2025-06-29 11:38:39 +00:00
cmd/tailscale: use text format for TKA head
Updates tailscale/corp#23258 Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
4a7b8afabf
commit
df786be14d
@ -639,7 +639,11 @@ func nlDescribeUpdate(update ipnstate.NetworkLockUpdate, color bool) (string, er
|
|||||||
return "", fmt.Errorf("decoding: %w", err)
|
return "", fmt.Errorf("decoding: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintf(&stanza, "%supdate %x (%s)%s\n", terminalYellow, update.Hash, update.Change, terminalClear)
|
tkaHead, err := aum.Hash().MarshalText()
|
||||||
|
if err != nil {
|
||||||
|
return "", fmt.Errorf("decoding AUM hash: %w", err)
|
||||||
|
}
|
||||||
|
fmt.Fprintf(&stanza, "%supdate %s (%s)%s\n", terminalYellow, string(tkaHead), update.Change, terminalClear)
|
||||||
|
|
||||||
switch update.Change {
|
switch update.Change {
|
||||||
case tka.AUMAddKey.String():
|
case tka.AUMAddKey.String():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user