Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Capricelli
botfreak
Commits
0c9988e17ae4
Commit
81fbb2ac
authored
Feb 06, 2022
by
Thomas Capricelli
Browse files
todo..
parent
b72901de0740
Changes
1
Hide whitespace changes
Inline
Side-by-side
main/views/api.py
View file @
0c9988e1
...
...
@@ -269,6 +269,11 @@ def listbadips(request):
assert
(
next_timestamp
>
from_timestamp
)
# TODO:
# though it's time consuming, it would be far better to filter against the user white lists.
# it's already done for global lists.
# currently, an ip in user A white list can be reported by another user, and then sent to user A servers..
# Compute answer
# Ok, there's plenty of room for improvements here
ips
=
set
([
r
.
badip
.
ip
for
r
in
reports
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment