]> git.ipfire.org Git - location/libloc.git/commit - src/database.c
export: Fix filtering logic
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Mar 2022 08:48:14 +0000 (08:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Mar 2022 08:48:14 +0000 (08:48 +0000)
commit964633d92c8cb100adbe97aceb02a158da5fa8bf
treeab1b96d20d7451f31762de3b94844b26841bc636
parent2ad36187d81f561223fde1f71cfd51035f5086e0
export: Fix filtering logic

It is possible to filter for what kind of network should be exported.

This worked well when the filter list only contained country codes, or
when it only contained ASNs. If there was a mix, only networks that
match both (i.e. virtually nothing) matched.

This patch fixes that we will use for either of them.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.c