From ffaa6be8a4d84f3c5595328a44f3df2a8cf92e7f Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 8 Jul 2023 19:33:23 -0700 Subject: [PATCH] tailcfg: add json omitempty to DNSConfig.ExitNodeFilteredSet We were storing a lot of "ExitNodeFilteredSet":null in the database. Updates tailscale/corp#1818 (found in the process) Signed-off-by: Brad Fitzpatrick --- tailcfg/tailcfg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index f99512557..89a8953c9 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -1282,7 +1282,7 @@ type DNSConfig struct { // match. // // Matches are case insensitive. - ExitNodeFilteredSet []string + ExitNodeFilteredSet []string `json:",omitempty"` } // DNSRecord is an extra DNS record to add to MagicDNS.