Mythologyli / zju-connect

ZJU RVPN 客户端的 Go 语言实现
GNU Affero General Public License v3.0
313 stars 21 forks source link

feat: support udp forward(experimental) #3

Closed cxz66666 closed 1 year ago

cxz66666 commented 1 year ago

WARNING: THIS FEATURE DOESN'T BE TESTED COMPLETELY !!

  1. use things-go/go-socks5 instead of armon/go-socks5, which introduce UDP ASSOCIATE. BUT I think this repo has some fatal error, so I create a pr already, but before it be merged we use cxz66666/go-sock5 instead it.

  2. just use gonet.DialUDP to create a udp associate.

NOTIFY: When using Clash Tun mode for a udp proxy, PLEASE set server addr to LAN ADDRESS(e.g.:192.168..), DON'T USE 127.0.0.1 or localhost, please check this issue.

Mythologyli commented 1 year ago

打算先合并了,测试了一下不会影响已有功能。未来如果在 UDP 或者 SOCKS5 方面有重大更改可以新开一个分支操作