diff options
author | dequis <dx@dxzone.com.ar> | 2015-10-21 10:14:17 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-10-21 10:14:17 -0300 |
commit | 12f041de930a20a3df91f9f90c4fd518162ea82c (patch) | |
tree | bfe4f8b160ea4707d2600b73eb0e28d3b5f505c8 /lib/url.c | |
parent | 3314ced0efff64ce4f92caf24b9272f5249c3a17 (diff) |
socks4a proxy support (like socks4 with remote DNS)
Fixes trac ticket 995 https://bugs.bitlbee.org/bitlbee/ticket/995
This is slightly pointless for the suggested use case (tor), since with
socks5 we already send a hostname instead of an IP address.
Either way, it was easy to implement, so I hope it helps.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -47,6 +47,8 @@ int url_set(url_t *url, const char *set_url) url->proto = PROTO_SOCKS4; } else if (g_strncasecmp(set_url, "socks5", i - set_url) == 0) { url->proto = PROTO_SOCKS5; + } else if (g_strncasecmp(set_url, "socks4a", i - set_url) == 0) { + url->proto = PROTO_SOCKS4A; } else { return 0; } |