Compared to http.client.HTTPSClient, SocksiPyConnectionS misses the following in its connect method:
if not self._context.check_hostname and self._check_hostname:
try:
ssl.match_hostname(self.sock.getpeercert(), server_hostname)
except Exception:
self.sock.shutdown(socket.SHUT_RDWR)
self.sock.close()
raise
Compared to
http.client.HTTPSClient
,SocksiPyConnectionS
misses the following in its connectmethod
: