Fix unhandled cases for Socks5

No idea if the IPv6 addresses are working or not, my proxy kept giving me "General Failure" responses, I think I need to configure it, but haven't looked into it yet.