From ef14663934afdaeff1b6aaccc9590212a0fbcee5 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 28 Oct 2021 19:00:29 -0700 Subject: [PATCH] Revert "tailcfg: remove reference to types/key.Public." Breaks corp unit tests. Updates #3206 This reverts commit 94f6257fde6bab821eb03725053ff3892811650f. --- tailcfg/tailcfg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index 4d585fcba..9131f816b 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -1148,7 +1148,7 @@ func keyUnmarshalText(dst []byte, prefix string, text []byte) error { return nil } -func (k NodeKey) ShortString() string { return key.NodePublicFromRaw32(mem.B(k[:])).ShortString() } +func (k NodeKey) ShortString() string { return (key.Public(k)).ShortString() } func (k NodeKey) String() string { return fmt.Sprintf("nodekey:%x", k[:]) } func (k NodeKey) MarshalText() ([]byte, error) { return keyMarshalText("nodekey:", k), nil }