summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-10-29 23:12:30 +0200
committerAdam Tauber <asciimoo@gmail.com>2016-10-29 23:21:07 +0200
commit1b9045ed899e1610959db76be66049ff80d2d41f (patch)
tree6448eb8e4d6edccfc43e98d088598a072cb37980
parenta67a4bf2c0dc3a34db9ab2610f974b199abf120d (diff)
downloadsearxng-1b9045ed899e1610959db76be66049ff80d2d41f.tar.gz
searxng-1b9045ed899e1610959db76be66049ff80d2d41f.zip
[enh] use morty proxy for image proxification too if it is configured
-rw-r--r--searx/webapp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index e9c5e917a..059283b16 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -266,6 +266,9 @@ def proxify(url):
def image_proxify(url):
+ if settings.get('result_proxy'):
+ return proxify(url)
+
if url.startswith('//'):
url = 'https:' + url