Enhanced SOCKS5 Support

Enhanced SOCKS5 Support

Supports HTTP and HTTPS destinations and performs all hostname resolution via the SOCKS proxy, preventing privacy leakage if used with Tor.

Verified to work when the destination url uses an IP address instead of a hostname.
Hm, if that's a concern, sure. Your patch is still broken, though. The length should not be included and the addresses are encoded as 4 or 16 bytes, not as a string.