Browse Source

Make reconnect proxies inherit the subproxy count of the original for the stratifier to know they're unique

master
Con Kolivas 10 years ago
parent
commit
50ebbe8086
  1. 1
      src/generator.c

1
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);

Loading…
Cancel
Save