diff options
| author | Andrew Dunham <andrew@du.nham.ca> | 2025-02-11 16:34:20 -0500 |
|---|---|---|
| committer | Andrew Dunham <andrew@du.nham.ca> | 2025-02-11 16:34:20 -0500 |
| commit | bb8b22ff4fb9ce63b74b161de8fb991b5f40a9a3 (patch) | |
| tree | 00822aae85c9d0d99d54e36b19a688b16390f679 /docs | |
| parent | bc0cd512ee112d31643ad9e326099e92139aa301 (diff) | |
| download | tailscale-andrew/wgengine-filter-split.tar.xz tailscale-andrew/wgengine-filter-split.zip | |
wgengine/filter: add single-item version of MatchesFromFilterRulesandrew/wgengine-filter-split
In the other repo, we have a few cases where we call
MatchesFromFilterRules with a single tailcfg.FilterRule. Rather than
allocating a slice and then looping over the single-item slice, split
the internal logic out to a function that takes a single FilterRule so
we can use that.
Updates tailscale/corp#26353
Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I95f2a7ee9de130712497259941264f06f3d00777
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
