python-proxy
python-proxy copied to clipboard
Run UDP socks5 on localhost error
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'
Hi, i have the same error. Python 3.12, pproxy 2.7.9.
The bug is on https://github.com/qwj/python-proxy/blob/09d4752f17ed6787e1a073c93980eec019887ee3/pproxy/server.py#L884
server has _SelectorDatagramTransport type and this type doesn't have sockets attribute.
Workaround is to comment out this line https://github.com/qwj/python-proxy/blob/09d4752f17ed6787e1a073c93980eec019887ee3/pproxy/server.py#L971