mirror of https://github.com/omar-polo/gmid.git
set REQUEST_PROXY only when proxy_init is successful
This commit is contained in:
parent
b9b77f5344
commit
89efa81bcc
12
proxy.c
12
proxy.c
|
@ -347,12 +347,12 @@ proxy_init(struct client *c)
|
||||||
{
|
{
|
||||||
struct proxy *p = c->proxy;
|
struct proxy *p = c->proxy;
|
||||||
|
|
||||||
|
if (!p->notls && proxy_setup_tls(c) == -1)
|
||||||
|
return -1;
|
||||||
|
else if (p->notls)
|
||||||
|
proxy_enqueue_req(c);
|
||||||
|
|
||||||
c->type = REQUEST_PROXY;
|
c->type = REQUEST_PROXY;
|
||||||
|
|
||||||
if (p->notls) {
|
return 0;
|
||||||
proxy_enqueue_req(c);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return proxy_setup_tls(c);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue