mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 21:59:22 +02:00
Add a self user agent plugin
Just like with the "ip" query, duckduckgo gives the server's information with the "user agent" query. This corrects this behavior by adding a plugin based on self_ip.py plugin.
This commit is contained in:
parent
1b77befe1f
commit
538029dc14
3 changed files with 54 additions and 1 deletions
|
@ -21,6 +21,7 @@ logger = logger.getChild('plugins')
|
|||
|
||||
from searx.plugins import (https_rewrite,
|
||||
self_ip,
|
||||
self_useragent,
|
||||
search_on_category_select)
|
||||
|
||||
required_attrs = (('name', str),
|
||||
|
@ -72,4 +73,5 @@ class PluginStore():
|
|||
plugins = PluginStore()
|
||||
plugins.register(https_rewrite)
|
||||
plugins.register(self_ip)
|
||||
plugins.register(self_useragent)
|
||||
plugins.register(search_on_category_select)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue