diff options
author | Adam Tauber <asciimoo@gmail.com> | 2020-09-01 15:57:35 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2020-09-01 15:59:22 +0200 |
commit | 4a913247b29286299e678e0756119fb62293760f (patch) | |
tree | 1f935147a6aae256639f65f248aa7abdddc62aa7 /searx/poolrequests.py | |
parent | b329058c1ad06fe9c1afd56c81e0ad27dbef06b8 (diff) | |
download | searxng-4a913247b29286299e678e0756119fb62293760f.tar.gz searxng-4a913247b29286299e678e0756119fb62293760f.zip |
[enh] add option to configure proxies per engine - closes #1827
Diffstat (limited to 'searx/poolrequests.py')
-rw-r--r-- | searx/poolrequests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/poolrequests.py b/searx/poolrequests.py index f9a9d7719..9f0ee8736 100644 --- a/searx/poolrequests.py +++ b/searx/poolrequests.py @@ -95,7 +95,8 @@ def request(method, url, **kwargs): session = SessionSinglePool() # proxies - kwargs['proxies'] = settings['outgoing'].get('proxies') or None + if kwargs.get('proxies') is None: + kwargs['proxies'] = settings['outgoing'].get('proxies') # timeout if 'timeout' in kwargs: |