qwj/python-proxy

Run UDP socks5 on localhost error

r4t31 opened this issue · 1 comments

r4t31 commented

When I try to run

pproxy -ul socks5://localhost:8000 -vv

I got the next error:

Serving on UDP localhost:8000 by socks5 
Start server failed.
	==> '_SelectorDatagramTransport' object has no attribute 'sockets'
ksofix commented

Hi, i have the same error. Python 3.12, pproxy 2.7.9.
The bug is on

for s in server.sockets:

server has _SelectorDatagramTransport type and this type doesn't have sockets attribute.
Workaround is to comment out this line
print_server_started(option, server, print_fn)