|
|
@ -45,6 +45,7 @@ func (s *Status) Peers() []key.Public {
|
|
|
|
type PeerStatus struct {
|
|
|
|
type PeerStatus struct {
|
|
|
|
PublicKey key.Public
|
|
|
|
PublicKey key.Public
|
|
|
|
HostName string // HostInfo's Hostname (not a DNS name or necessarily unique)
|
|
|
|
HostName string // HostInfo's Hostname (not a DNS name or necessarily unique)
|
|
|
|
|
|
|
|
DNSName string
|
|
|
|
OS string // HostInfo.OS
|
|
|
|
OS string // HostInfo.OS
|
|
|
|
UserID tailcfg.UserID
|
|
|
|
UserID tailcfg.UserID
|
|
|
|
|
|
|
|
|
|
|
@ -166,6 +167,9 @@ func (sb *StatusBuilder) AddPeer(peer key.Public, st *PeerStatus) {
|
|
|
|
if v := st.HostName; v != "" {
|
|
|
|
if v := st.HostName; v != "" {
|
|
|
|
e.HostName = v
|
|
|
|
e.HostName = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if v := st.DNSName; v != "" {
|
|
|
|
|
|
|
|
e.DNSName = v
|
|
|
|
|
|
|
|
}
|
|
|
|
if v := st.Relay; v != "" {
|
|
|
|
if v := st.Relay; v != "" {
|
|
|
|
e.Relay = v
|
|
|
|
e.Relay = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|