ipn/ipnstate: use key.NodePublic instead of tailcfg.NodeKey.

Updates #3206

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-11-01 18:38:24 -07:00
committed by Dave Anderson
parent c3d7115e63
commit c17250cee2
5 changed files with 9 additions and 9 deletions

View File

@@ -178,7 +178,7 @@ func (e *userspaceEngine) onOpenTimeout(flow flowtrack.Tuple) {
var ps *ipnstate.PeerStatusLite
if st, err := e.getStatus(); err == nil {
for _, v := range st.Peers {
if v.NodeKey == n.Key {
if v.NodeKey == n.Key.AsNodePublic() {
v := v // copy
ps = &v
}