Skip to content

Commit f7eaa60

Browse files
committed
fix: CURLOPT_SSL_VERIFYHOST no longer supports 1 as value!
1 parent 20fc2cd commit f7eaa60

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎proxy_checker/proxy_checker.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ def send_query(self, proxy: Union[str, bool] = False, url: str = None, tls=1.3,
145145
if proxy:
146146
c.setopt(c.PROXY, proxy)
147147
if proxy.startswith('https'):
148-
c.setopt(c.SSL_VERIFYHOST, 1)
149-
c.setopt(c.SSL_VERIFYPEER, 1)
148+
# c.setopt(c.SSL_VERIFYHOST, 1)
149+
# c.setopt(pycurl.SSL_VERIFYHOST, 2)
150+
# c.setopt(c.SSL_VERIFYPEER, 1)
150151
c.setopt(c.CAINFO, certifi.where())
151152
if tls == 1.3:
152153
c.setopt(c.SSLVERSION, c.SSLVERSION_MAX_TLSv1_3)

0 commit comments

Comments
 (0)