mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Add onion url to ddg, update ping_url when using_tor_proxy
This commit is contained in:
parent
b6d59decda
commit
cb013affef
2 changed files with 11 additions and 4 deletions
|
|
@ -239,6 +239,8 @@ def update_attributes_for_tor(engine: Engine) -> bool:
|
|||
if using_tor_proxy(engine) and hasattr(engine, 'onion_url'):
|
||||
engine.search_url = engine.onion_url + getattr(engine, 'search_path', '')
|
||||
engine.timeout += settings['outgoing'].get('extra_proxy_timeout', 0)
|
||||
if hasattr(engine, 'ping_url'):
|
||||
engine.ping_url = engine.onion_url + getattr(engine, 'ping_path', '')
|
||||
|
||||
|
||||
def is_missing_required_attributes(engine):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue