mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-20 11:58:39 +00:00
tailcfg: make NetPortRange.Bits omitempty
This is deprecated anyway, and we don't need to be sending `"Bits":null` on the wire for the majority of clients. Updates tailscale/corp#20965 Updates tailscale/corp#26353 Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: I95a3e3d72619389ae34a6547ebf47043445374e1
This commit is contained in:
parent
f35c49d211
commit
926a43fe51
@ -1409,7 +1409,7 @@ var PortRangeAny = PortRange{0, 65535}
|
||||
type NetPortRange struct {
|
||||
_ structs.Incomparable
|
||||
IP string // IP, CIDR, Range, or "*" (same formats as FilterRule.SrcIPs)
|
||||
Bits *int // deprecated; the 2020 way to turn IP into a CIDR. See FilterRule.SrcBits.
|
||||
Bits *int `json:",omitempty"` // deprecated; the 2020 way to turn IP into a CIDR. See FilterRule.SrcBits.
|
||||
Ports PortRange
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user