Просмотр исходного кода

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 <[email protected]>
Brad Fitzpatrick 2 лет назад
Родитель
Сommit
ffaa6be8a4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tailcfg/tailcfg.go

+ 1 - 1
tailcfg/tailcfg.go

@@ -1282,7 +1282,7 @@ type DNSConfig struct {
 	// match.
 	// match.
 	//
 	//
 	// Matches are case insensitive.
 	// Matches are case insensitive.
-	ExitNodeFilteredSet []string
+	ExitNodeFilteredSet []string `json:",omitempty"`
 }
 }
 
 
 // DNSRecord is an extra DNS record to add to MagicDNS.
 // DNSRecord is an extra DNS record to add to MagicDNS.