serjs / socks5-server

667 stars 165 forks source link

Added IP whitelist support #43

Closed sazonovanton closed 1 year ago

sazonovanton commented 1 year ago

This pull request adds the ability to set an IP whitelist for the socks5 proxy server. The SetIPWhitelist method has been added to the socks5.Server struct (armon/go-socks5). This feature is being used in server.go, allowing users to specify a list of allowed IP addresses. Any incoming connection from an IP address that is not in the whitelist will be rejected. Also docker-compose.build.yml was added to build an image from the source code.

serjs commented 1 year ago

Hi!

Thank you for your contribution, due weak CI process, I need to look into this from main branch, making release after some testing period