things-go / go-socks5

socks5 server in pure Golang with much custom optional. Full TCP/UDP and IPv4/IPv6 support.
MIT License
412 stars 72 forks source link

UDP proxy close bind socket when read from remote failed, but don't close proxy socket!!! #55

Closed wwcd closed 9 months ago

wwcd commented 9 months ago

image

udp proxy close bind socket when read from remote failed, but don't close proxy socket! scene as above.

https://github.com/things-go/go-socks5/blob/44f644e8fbb80bc3417612eaa6144b5b8703114b/handle.go#L249-L256

thinkgos commented 9 months ago

welcome pr

wwcd commented 9 months ago

I carefully read the implementation of v0.0.5 and found that this problem has been solved, but the implementation of v0.0.3 is problematic.