summaryrefslogtreecommitdiff
path: root/searx/plugins/__init__.py
diff options
context:
space:
mode:
authorLuc Didry <luc@didry.org>2015-06-13 17:49:33 +0200
committerLuc Didry <luc@didry.org>2015-06-14 21:08:38 +0200
commit538029dc14ca47afae126e29bf789941d9bffd48 (patch)
tree2497ed6d4a430b80210055fb5f83ff40adf81057 /searx/plugins/__init__.py
parent1b77befe1fb1dbf82f99db69f857d21a7f0fdd6e (diff)
downloadsearxng-538029dc14ca47afae126e29bf789941d9bffd48.tar.gz
searxng-538029dc14ca47afae126e29bf789941d9bffd48.zip
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.
Diffstat (limited to 'searx/plugins/__init__.py')
-rw-r--r--searx/plugins/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py
index 5ac3f447c..a16ae5fc3 100644
--- a/searx/plugins/__init__.py
+++ b/searx/plugins/__init__.py
@@ -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)