Adds Socks4 support with a plugin
https://rbcommons.com/s/pepperdata/r/4984/