|
|
@ -77,6 +77,7 @@ type PeerStatus struct {
|
|
|
|
LastSeen time.Time // last seen to tailcontrol
|
|
|
|
LastSeen time.Time // last seen to tailcontrol
|
|
|
|
LastHandshake time.Time // with local wireguard
|
|
|
|
LastHandshake time.Time // with local wireguard
|
|
|
|
KeepAlive bool
|
|
|
|
KeepAlive bool
|
|
|
|
|
|
|
|
ExitNode bool // true if this is the currently selected exit node.
|
|
|
|
|
|
|
|
|
|
|
|
// ShareeNode indicates this node exists in the netmap because
|
|
|
|
// ShareeNode indicates this node exists in the netmap because
|
|
|
|
// it's owned by a shared-to user and that node might connect
|
|
|
|
// it's owned by a shared-to user and that node might connect
|
|
|
@ -244,6 +245,9 @@ func (sb *StatusBuilder) AddPeer(peer key.Public, st *PeerStatus) {
|
|
|
|
if st.KeepAlive {
|
|
|
|
if st.KeepAlive {
|
|
|
|
e.KeepAlive = true
|
|
|
|
e.KeepAlive = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if st.ExitNode {
|
|
|
|
|
|
|
|
e.ExitNode = true
|
|
|
|
|
|
|
|
}
|
|
|
|
if st.ShareeNode {
|
|
|
|
if st.ShareeNode {
|
|
|
|
e.ShareeNode = true
|
|
|
|
e.ShareeNode = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|