浏览代码

[enh] use morty proxy for image proxification too if it is configured

Adam Tauber 8 年前
父节点
当前提交
1b9045ed89
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      searx/webapp.py

+ 3
- 0
searx/webapp.py 查看文件

266
 
266
 
267
 def image_proxify(url):
267
 def image_proxify(url):
268
 
268
 
269
+    if settings.get('result_proxy'):
270
+        return proxify(url)
271
+
269
     if url.startswith('//'):
272
     if url.startswith('//'):
270
         url = 'https:' + url
273
         url = 'https:' + url
271
 
274