Browse Source

Send only the parent proxy id from the generator to the stratifier

master
Con Kolivas 10 years ago
parent
commit
e287feede0
  1. 4
      src/generator.c

4
src/generator.c

@ -1818,13 +1818,11 @@ reconnect:
if (proxi != cproxy) { if (proxi != cproxy) {
proxi = cproxy; proxi = cproxy;
if (!ckp->passthrough) { if (!ckp->passthrough) {
proxy_instance_t *proxy = proxi->proxy;
connsock_t *cs = proxi->cs; connsock_t *cs = proxi->cs;
LOGWARNING("Successfully connected to proxy %d %s:%s as proxy", LOGWARNING("Successfully connected to proxy %d %s:%s as proxy",
proxi->id, cs->url, cs->port); proxi->id, cs->url, cs->port);
dealloc(buf); dealloc(buf);
ASPRINTF(&buf, "proxy=%d:%d", proxy->id, proxi->id); ASPRINTF(&buf, "proxy=%d", proxi->id);
send_proc(ckp->stratifier, buf); send_proc(ckp->stratifier, buf);
} }
} }

Loading…
Cancel
Save