tailcfg, controlclient: standardize on wgcfg ShortString key printing

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
David Crawshaw
2020-03-19 09:10:46 +11:00
parent acd14960f8
commit 73cae4eb11
3 changed files with 10 additions and 19 deletions

View File

@@ -442,7 +442,7 @@ func (k *MachineKey) UnmarshalText(text []byte) error {
func (k NodeKey) String() string { return fmt.Sprintf("nodekey:%x", k[:]) }
func (k NodeKey) AbbrevString() string {
func (k NodeKey) ShortString() string {
pk := wgcfg.Key(k)
return pk.ShortString()
}