浏览代码

[fix] piratebay - cloudfare ssl errors

Adam Tauber 10 年前
父节点
当前提交
e1adf8f7b8
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      searx/engines/piratebay.py

+ 4
- 0
searx/engines/piratebay.py 查看文件

42
                                       search_type=search_type,
42
                                       search_type=search_type,
43
                                       pageno=params['pageno'] - 1)
43
                                       pageno=params['pageno'] - 1)
44
 
44
 
45
+    # FIX: SSLError: hostname 'kthepiratebay.se'
46
+    # doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com'
47
+    params['verify'] = False
48
+
45
     return params
49
     return params
46
 
50
 
47
 
51