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.
This commit is contained in:
Brad Fitzpatrick 2021-01-08 20:55:57 -08:00
parent a4cc31e7d8
commit b5b9866ba2
1 changed files with 2 additions and 1 deletions

View File

@ -2713,7 +2713,8 @@ func (c *Conn) UpdateStatus(sb *ipnstate.StatusBuilder) {
}
if c.netMap != nil {
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 {
derpRegion, ok := c.derpMap.Regions[c.myDerp]