فهرست منبع

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 سال پیش
والد
کامیت
ffaa6be8a4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      tailcfg/tailcfg.go

+ 1 - 1
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.