state: pin ExitNodeID as not peer-visible

Updates #3643
This commit is contained in:
Kristoffer Dalby committed 2026-11-05 16:15:27 +01:00
1 parent b216d5b6aa
commit 9ab6a64ee3
1 file changed
+1
+1
View File
@@ -886,6 +886,7 @@ func TestPeerHostinfoEqual(t *testing.T) {
},
{name: "ssh host keys", mutate: func(hi *tailcfg.Hostinfo) { hi.SSH_HostKeys = []string{"ssh-ed25519 AAAA"} }, want: false},
{name: "location", mutate: func(hi *tailcfg.Hostinfo) { hi.Location = &tailcfg.Location{Priority: 5} }, want: true},
{name: "exit node", mutate: func(hi *tailcfg.Hostinfo) { hi.ExitNodeID = "n123" }, want: true},
{
name: "dns proxy service",
mutate: func(hi *tailcfg.Hostinfo) { hi.Services = []tailcfg.Service{{Proto: tailcfg.PeerAPIDNS, Port: 1}} },