mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-31 21:42:24 +00:00
Merge d2eaf272f067755fb3312fabe355b326f8ce8140 into b3455fa99a5e8d07133d5140017ec7c49f032a07
This commit is contained in:
commit
35d9480216
@ -1942,12 +1942,8 @@ type MapResponse struct {
|
|||||||
// the same HTTP response. A non-nil but empty list always means
|
// the same HTTP response. A non-nil but empty list always means
|
||||||
// no PacketFilter (that is, to block everything).
|
// no PacketFilter (that is, to block everything).
|
||||||
//
|
//
|
||||||
// Note that this package's type, due its use of a slice and omitempty, is
|
|
||||||
// unable to marshal a zero-length non-nil slice. The control server needs
|
|
||||||
// to marshal this type using a separate type. See MapResponse docs.
|
|
||||||
//
|
|
||||||
// See PacketFilters for the newer way to send PacketFilter updates.
|
// See PacketFilters for the newer way to send PacketFilter updates.
|
||||||
PacketFilter []FilterRule `json:",omitempty"`
|
PacketFilter []FilterRule `json:",omitzero"`
|
||||||
|
|
||||||
// PacketFilters encodes incremental packet filter updates to the client
|
// PacketFilters encodes incremental packet filter updates to the client
|
||||||
// without having to send the entire packet filter on any changes as
|
// without having to send the entire packet filter on any changes as
|
||||||
|
Loading…
x
Reference in New Issue
Block a user