From 92d1572e0a27af20f8c59899d04e6c35343cf698 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 20 Mar 2015 14:06:38 +1100 Subject: [PATCH] Search the user proxy list when looking up proxy_by_id --- src/generator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generator.c b/src/generator.c index 473f265e..bf2b5cc7 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1298,6 +1298,8 @@ static proxy_instance_t *proxy_by_id(gdata_t *gdata, const int id) mutex_lock(&gdata->lock); HASH_FIND_INT(gdata->proxies, &id, proxi); + if (!proxi) + HASH_FIND_INT(gdata->user_proxies, &id, proxi); mutex_unlock(&gdata->lock); return proxi;