python-proxy icon indicating copy to clipboard operation
python-proxy copied to clipboard

Run UDP socks5 on localhost error

Open r4t31 opened this issue 2 years ago • 1 comments

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'

r4t31 avatar Mar 14 '23 12:03 r4t31

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

ksofix avatar Feb 03 '24 08:02 ksofix