From 50ebbe808675a5920ed32eed8e7e60a1e49e8e71 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 16 Feb 2015 01:09:14 +1100 Subject: [PATCH] Make reconnect proxies inherit the subproxy count of the original for the stratifier to know they're unique --- src/generator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generator.c b/src/generator.c index 519551fd..46adf243 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1032,6 +1032,7 @@ static bool parse_reconnect(proxy_instance_t *proxi, json_t *val) newproxi->cs = &newsi->cs; newproxi->cs->ckp = ckp; newproxi->id = newsi->id; + newproxi->subproxy_count = ++proxi->subproxy_count; HASH_REPLACE_INT(gdata->proxies, id, newproxi, proxi); mutex_unlock(&gdata->lock);