summaryrefslogtreecommitdiffhomepage
path: root/control/controlclient/map.go
diff options
context:
space:
mode:
Diffstat (limited to 'control/controlclient/map.go')
-rw-r--r--control/controlclient/map.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/control/controlclient/map.go b/control/controlclient/map.go
index 90bf83213..67cf8cd90 100644
--- a/control/controlclient/map.go
+++ b/control/controlclient/map.go
@@ -83,6 +83,7 @@ type mapSession struct {
lastSSHPolicy *tailcfg.SSHPolicy
collectServices bool
lastDomain string
+ lastDisplayName string
lastDomainAuditLogID string
lastHealth []string
lastPopBrowserURL string
@@ -312,6 +313,9 @@ func (ms *mapSession) updateStateFromResponse(resp *tailcfg.MapResponse) {
if resp.Domain != "" {
ms.lastDomain = resp.Domain
}
+ if resp.DisplayName != "" {
+ ms.lastDisplayName = resp.DisplayName
+ }
if resp.DomainDataPlaneAuditLogID != "" {
ms.lastDomainAuditLogID = resp.DomainDataPlaneAuditLogID
}
@@ -756,6 +760,7 @@ func (ms *mapSession) netmap() *netmap.NetworkMap {
Peers: peerViews,
UserProfiles: make(map[tailcfg.UserID]tailcfg.UserProfile),
Domain: ms.lastDomain,
+ DisplayName: ms.lastDisplayName,
DomainAuditLogID: ms.lastDomainAuditLogID,
DNS: *ms.lastDNSConfig,
PacketFilter: ms.lastParsedPacketFilter,