From 3628128d640ec1a11a8487bfcd10c5630c440729 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 20 Mar 2015 15:28:39 +1100 Subject: [PATCH] Set ckp variable in connsocks used by proxies --- src/generator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generator.c b/src/generator.c index 4bb4f973..2c72e9b6 100644 --- a/src/generator.c +++ b/src/generator.c @@ -2202,7 +2202,7 @@ static proxy_instance_t *__add_userproxy(ckpool_t *ckp, gdata_t *gdata, const in proxy->url = url; proxy->auth = auth; proxy->pass = pass; - proxy->ckp = ckp; + proxy->ckp = proxy->cs.ckp = ckp; mutex_init(&proxy->notify_lock); mutex_init(&proxy->share_lock); HASH_ADD_INT(gdata->proxies, id, proxy); @@ -2488,7 +2488,7 @@ static proxy_instance_t *__add_proxy(ckpool_t *ckp, gdata_t *gdata, const int id proxy->url = strdup(ckp->proxyurl[id]); proxy->auth = strdup(ckp->proxyauth[id]); proxy->pass = strdup(ckp->proxypass[id]); - proxy->ckp = ckp; + proxy->ckp = proxy->cs.ckp = ckp; mutex_init(&proxy->notify_lock); mutex_init(&proxy->share_lock); HASH_ADD_INT(gdata->proxies, id, proxy);