mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
whitelist_ratelimiter: @dalf patch
- it calls ip_address and ip_network only once for the settings. - init_whitelist to make tests easier - get_remote_addr get the IP address for the function is_accepted_request - for reference: https://esd.io/blog/flask-apps-heroku-real-ip-spoofing.html
This commit is contained in:
parent
04121beb10
commit
6122afdd98
4 changed files with 52 additions and 28 deletions
1
manage
1
manage
|
|
@ -698,6 +698,7 @@ test.pylint() {
|
|||
build_msg TEST "[pylint] searx tests"
|
||||
python ${PYLINT_OPTIONS} ${PYLINT_VERBOSE} \
|
||||
--disable="${PYLINT_SEARXNG_DISABLE_OPTION}" \
|
||||
--additional-builtins="${PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES}" \
|
||||
--ignore=searx/engines \
|
||||
searx tests
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue