things-go / go-socks5

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

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

Closed wwcd closed 4 months ago

wwcd commented 4 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 4 months ago

welcome pr

wwcd commented 4 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.