mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
d1d5d52b2c
It is based on `*tempfork/device.AllowedIPs`. Updates tailscale/corp#8020 Signed-off-by: Maisem Ali <maisem@tailscale.com>
29 lines
367 B
Go
29 lines
367 B
Go
/* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
|
|
*/
|
|
|
|
package device
|
|
|
|
import (
|
|
"container/list"
|
|
|
|
"tailscale.com/types/key"
|
|
)
|
|
|
|
type Peer struct {
|
|
trieEntries list.List
|
|
|
|
key key.NodePublic
|
|
}
|
|
|
|
func NewPeer(k key.NodePublic) *Peer {
|
|
return &Peer{
|
|
key: k,
|
|
}
|
|
}
|
|
|
|
func (p *Peer) Key() key.NodePublic {
|
|
return p.key
|
|
}
|