diff options
author | Omar Polo <op@omarpolo.com> | 2024-08-03 10:11:47 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-08-03 10:11:47 +0000 |
commit | 19dc21be61edc4757bb53de4b56cb747d0b6cd2b (patch) | |
tree | 125549ba565e3dfd912b13025ed650583bb96f6b /proxy.c | |
parent | a4e20d48574f823ff7cd3d7955504dcf5dae9316 (diff) |
proxy_init: simplify logic
Diffstat (limited to 'proxy.c')
-rw-r--r-- | proxy.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -347,10 +347,10 @@ proxy_init(struct client *c) { struct proxy *p = c->proxy; - if (!p->notls && proxy_setup_tls(c) == -1) - return -1; - else if (p->notls) + if (p->notls) proxy_enqueue_req(c); + else if (proxy_setup_tls(c) == -1) + return -1; c->type = REQUEST_PROXY; |