wgengine: remove use of legacy key parsing helper.

Updates #3206

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-10-29 14:57:32 -07:00
parent 743293d473
commit ccd36cb5b1
2 changed files with 4 additions and 4 deletions

View File

@ -1007,14 +1007,14 @@ func (e *userspaceEngine) getStatus() (*Status, error) {
}
switch string(k) {
case "public_key":
pk, err := key.NewPublicFromHexMem(v)
pk, err := key.ParseNodePublicUntyped(v)
if err != nil {
return nil, fmt.Errorf("IpcGetOperation: invalid key in line %q", line)
}
if !p.NodeKey.IsZero() {
pp[p.NodeKey] = p
}
p = ipnstate.PeerStatusLite{NodeKey: tailcfg.NodeKey(pk)}
p = ipnstate.PeerStatusLite{NodeKey: tailcfg.NodeKeyFromNodePublic(pk)}
case "rx_bytes":
n, err = mem.ParseInt(v, 10, 64)
p.RxBytes = n