A proxy server for socks5 protocol with c++
This proxy server currently only supports MacOS and Linux operating system.
This proxy server needs to be used with the proxy client, such as the Chrome browser plug-in SwitchyOmega.
make
./server ip port
or
./server port
E.g:
./server 0.0.0.0 1080
or
./server 1080
If the bound ip address is not provided in the command line argument, the program will bind INADDR_ANY (0.0.0.0) by default.
Currently all IO operations are blocked, and IO events are handled in a single process in a multiplexed manner. The connect() system call blocks for 75 seconds when connecting to an upstream server that is not listening.
All done. Have a nice ... day(night) Enjoy it:)