Sfoglia il codice sorgente

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

Adam Tauber 9 anni fa
parent
commit
1b9045ed89
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      searx/webapp.py

+ 3
- 0
searx/webapp.py Vedi File

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