linw1995 / lightsocks-python

⚡️一个轻巧的网络混淆代理🌏
MIT License
260 stars 107 forks source link

Found using blocking method #5

Closed linw1995 closed 5 years ago

linw1995 commented 7 years ago

https://github.com/linw1995/lightsocks-python/blob/44dbbc9c3820969580709eedef0cd30050c89cdb/lightsocks/server.py#L139-L145

socket.create_connection contains the blocking method socket.getaddrinfo.

should use coroutine AbstractEventLoop.getaddrinfo(host, port, *, family=0, type=0, proto=0, flags=0) first, and then create new connection