tailcfg: remove reference to types/key.Public.

Updates #3206

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/3223/head
David Anderson 3 years ago
parent 1f06f77dcb
commit 94f6257fde

@ -1148,7 +1148,7 @@ func keyUnmarshalText(dst []byte, prefix string, text []byte) error {
return nil return nil
} }
func (k NodeKey) ShortString() string { return (key.Public(k)).ShortString() } func (k NodeKey) ShortString() string { return key.NodePublicFromRaw32(mem.B(k[:])).ShortString() }
func (k NodeKey) String() string { return fmt.Sprintf("nodekey:%x", k[:]) } func (k NodeKey) String() string { return fmt.Sprintf("nodekey:%x", k[:]) }
func (k NodeKey) MarshalText() ([]byte, error) { return keyMarshalText("nodekey:", k), nil } func (k NodeKey) MarshalText() ([]byte, error) { return keyMarshalText("nodekey:", k), nil }

Loading…
Cancel
Save