aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-10-21 10:14:17 -0300
committerdequis <dx@dxzone.com.ar>2015-10-21 10:14:17 -0300
commit12f041de930a20a3df91f9f90c4fd518162ea82c (patch)
treebfe4f8b160ea4707d2600b73eb0e28d3b5f505c8 /conf.c
parent3314ced0efff64ce4f92caf24b9272f5249c3a17 (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 'conf.c')
-rw-r--r--conf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index 845731b2..ac02f1b1 100644
--- a/conf.c
+++ b/conf.c
@@ -294,6 +294,8 @@ static int conf_loadini(conf_t *conf, char *file)
proxytype = PROXY_SOCKS4;
} else if (url->proto == PROTO_SOCKS5) {
proxytype = PROXY_SOCKS5;
+ } else if (url->proto == PROTO_SOCKS4A) {
+ proxytype = PROXY_SOCKS4A;
}
g_free(url);