mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-06 16:25:50 +00:00
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>
This commit is contained in:
parent
e8ae355bb8
commit
312646c516
@ -572,7 +572,7 @@ type FilterRule struct {
|
|||||||
// position is 32, as if the SrcIPs above were a /32 mask. For
|
// position is 32, as if the SrcIPs above were a /32 mask. For
|
||||||
// a "*" SrcIPs value, the corresponding SrcBits value is
|
// a "*" SrcIPs value, the corresponding SrcBits value is
|
||||||
// ignored.
|
// ignored.
|
||||||
SrcBits []int
|
SrcBits []int `json:",omitempty"`
|
||||||
|
|
||||||
// DstPorts are the port ranges to allow once a source IP
|
// DstPorts are the port ranges to allow once a source IP
|
||||||
// matches (is in the CIDR described by SrcIPs & SrcBits).
|
// matches (is in the CIDR described by SrcIPs & SrcBits).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user