genshen / wssocks

socks5 over websocket
MIT License
154 stars 28 forks source link

UDP support #12

Open mokhtarabadi opened 4 years ago

mokhtarabadi commented 4 years ago

Did you have any plan to implement a way to transfer UDP packets through the TCP connection?

For example v2ray can do it

genshen commented 4 years ago

sure, UDP support is in plan.

mokhtarabadi commented 4 years ago

Hi @genshen, Did you trying anything for this feature, I don't know go too much but I find something like this https://github.com/bradleyfalzon/udp-to-tcp, can you implement this feature

genshen commented 4 years ago

Perhaps UDP within socks5 protocol is more complicated than what bradleyfalzon/udp-to-tcp does.
I will try to add an initial implementation of UDP support in recent weeks based on the description of socks5 RFC.
Really thanks for your feedbacks and suggestions.

mokhtarabadi commented 4 years ago

Yes for client use socks5 UDP as you mentioned, but I talk about server and how UDP packets must transfered through websocket (which on TCP protocol)

Best example of this is v2ray

genshen commented 4 years ago

Yep, you are right😀. I will check the code implementation of v2ray to see if wssocks can learn something from v2ray.

mokhtarabadi commented 4 years ago

thanks for your attention and the great project

mokhtarabadi commented 4 years ago

Hi, any news about this?