rofl0r / microsocks

tiny, portable SOCKS5 server with very moderate resource usage
Other
1.59k stars 277 forks source link

add -B bind device option (follows up on #29) #79

Open peppergrayxyz opened 2 months ago

peppergrayxyz commented 2 months ago

This follows up on https://github.com/rofl0r/microsocks/pull/29

It could be integrated into socksrv.c as well, but #include <netinet/in.h> must be included with _GNU_SOURCE or _DARWIN_C_SOURCE set (depending on the platform) and this doesn't play well with the way the server.h currently works.

References: