bepass-org / warp-plus

Warp+Psiphon, an anti censorship utility for iran
MIT License
1.33k stars 237 forks source link

Fixed Udp Associate(Socks5) #95

Closed xAJx1383 closed 1 month ago

xAJx1383 commented 1 month ago

thx god, i was able to track down the issue that causes UDP connections don't work

markpash commented 1 month ago

How were you able to test that UDP was not working? In my tests UDP worked fine. (I would send DNS packets)

xAJx1383 commented 1 month ago

it was trying to bind to destination address which causes errors as i saw in console while i was using it,,,

for example trying to connect to destAddr of 1.1.1.1 port 53 is was trying to create a socket and bind it to 1.1.1.1:53 while its not right it should bind a local address and redirect all udp packet sent to it to the destination

maybe it was a Windows specific issue with the way they handles the socket's binding

i used a program similar to tun2socks and ran a online game to see if it works and i saw the errors

let me test it and verify it in another cases... maybe i reopen it later