tailcfg: add omitempty to FilterRule.SrcBits (#1089)

It's not used by recent clients, so even more reason to omit it.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/957/head
Brad Fitzpatrick 4 years ago committed by GitHub
parent e8ae355bb8
commit 312646c516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -572,7 +572,7 @@ type FilterRule struct {
// position is 32, as if the SrcIPs above were a /32 mask. For
// a "*" SrcIPs value, the corresponding SrcBits value is
// ignored.
SrcBits []int
SrcBits []int `json:",omitempty"`
// DstPorts are the port ranges to allow once a source IP
// matches (is in the CIDR described by SrcIPs & SrcBits).

Loading…
Cancel
Save