-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tags): Allow filtering by both IPv4 and IPv6 tags on EventUsers (#…
…71474) Resolves #71461 Prior, when filtering by IP, regardless of which type the address was, we'd apply an IPv4 and IPv6 filter (`toIPv4` and `toIPv6`). For v4s this works fine since the `toIPv4` resolves and `toIPv6` allows for passing v4s. When passing in v6s though, `toIPv4` fails loudly and returns a 500 from the API. Now, we'll just create two conditions (v4 and v6) and add in all the valid IPs for each form of address after validating them as one or the other. The code was also a bit confusing so it got a heavy refactor, and a few test changes.
- Loading branch information
Showing
2 changed files
with
89 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters