types/opt: de-weird the API a bit with new True and False consts

Updates #cleanup

Change-Id: I15d8d840877d43e2b884d42354b4eb156094df7d
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2025-09-26 12:38:49 -07:00
committed by Brad Fitzpatrick
parent e766adf71f
commit afe909664b
3 changed files with 30 additions and 14 deletions
+1 -1
View File
@@ -1785,7 +1785,7 @@ func TestC2NDebugNetmap(t *testing.T) {
tstest.Shard(t)
tstest.Parallel(t)
env := NewTestEnv(t, ConfigureControl(func(s *testcontrol.Server) {
s.CollectServices = "false"
s.CollectServices = opt.False
}))
var testNodes []*TestNode
@@ -1101,7 +1101,7 @@ func (s *Server) MapResponse(req *tailcfg.MapRequest) (res *tailcfg.MapResponse,
Node: node,
DERPMap: s.DERPMap,
Domain: domain,
CollectServices: cmp.Or(s.CollectServices, "true"),
CollectServices: cmp.Or(s.CollectServices, opt.True),
PacketFilter: packetFilterWithIngress(s.PeerRelayGrants),
DNSConfig: dns,
ControlTime: &t,