wgengine/magicsock: copy self DNS name to PeerStatus, re-fill OS

The OS used to be sent back from the server but that has since
been removed as being redundant.
pull/1105/head
Brad Fitzpatrick 4 years ago
parent a4cc31e7d8
commit b5b9866ba2

@ -2713,7 +2713,8 @@ func (c *Conn) UpdateStatus(sb *ipnstate.StatusBuilder) {
} }
if c.netMap != nil { if c.netMap != nil {
ss.HostName = c.netMap.Hostinfo.Hostname ss.HostName = c.netMap.Hostinfo.Hostname
ss.OS = c.netMap.Hostinfo.OS ss.OS = version.OS()
ss.DNSName = c.netMap.Name
} }
if c.derpMap != nil { if c.derpMap != nil {
derpRegion, ok := c.derpMap.Regions[c.myDerp] derpRegion, ok := c.derpMap.Regions[c.myDerp]

Loading…
Cancel
Save