Skip to content

Fix tunnel route ip show subset filter query param - #1754

Open
wangyusheng1985 wants to merge 1 commit into
cloudflare:masterfrom
wangyusheng1985:contribution-1750
Open

wangyusheng1985 wants to merge 1 commit into
cloudflare:masterfrom
wangyusheng1985:contribution-1750

Conversation

@wangyusheng1985

Copy link
Copy Markdown

Fixes #1750.

cloudflared tunnel route ip show --filter-network-is-subset-of <cidr> encoded network_superset instead of network_subset, so it matched --filter-network-is-superset-of.

NewIpRouteFilterFromCLI now calls NetworkIsSubsetOf for the subset flag. A regression test asserts the encoded query contains network_subset and not network_superset.

Tested with go test ./cfapi/ -count=1.

--filter-network-is-subset-of was sending network_superset instead of
network_subset, so it matched --filter-network-is-superset-of.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tunnel route ip show: --filter-network-is-subset-of sends the superset filter

1 participant