Commit 565fb06b authored by Denis Bilenko's avatar Denis Bilenko

monkey: fix patch_socket() to patch 'create_connection'

parent 0e64e32d
......@@ -114,6 +114,7 @@ def patch_socket(dns=True, aggressive=True):
_socket = __import__('socket')
_socket.socket = socket.socket
_socket.SocketType = socket.SocketType
_socket.create_connection = socket.create_connection
if hasattr(socket, 'socketpair'):
_socket.socketpair = socket.socketpair
if hasattr(socket, 'fromfd'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment