Skip to content

Commit

Permalink
Node Explorer: Always remove root label from DNSName (#181)
Browse files Browse the repository at this point in the history
Including the root label in the DNSName for display purposes, outside
the context of DNS zone files is not ideal.

Signed-off-by: Tyler Smalley <tyler@tailscale.com>
  • Loading branch information
tylersmalley committed Aug 7, 2023
1 parent 1f1b531 commit e30851c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsrelay/handler/get_peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (h *handler) getPeers(ctx context.Context, body io.Reader) (*getPeersRespon
addr = p.TailscaleIPs[0].String()
}
peer := &peerStatus{
DNSName: p.DNSName,
DNSName: dnsNameNoRootLabel,
ServerName: serverName,
Online: p.Online,
ID: p.ID,
Expand Down

0 comments on commit e30851c

Please sign in to comment.