aboutsummaryrefslogtreecommitdiff
path: root/proxy.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-08-03 10:11:47 +0000
committerOmar Polo <op@omarpolo.com>2024-08-03 10:11:47 +0000
commit19dc21be61edc4757bb53de4b56cb747d0b6cd2b (patch)
tree125549ba565e3dfd912b13025ed650583bb96f6b /proxy.c
parenta4e20d48574f823ff7cd3d7955504dcf5dae9316 (diff)
proxy_init: simplify logic
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proxy.c b/proxy.c
index a0ae490..9c4c568 100644
--- a/proxy.c
+++ b/proxy.c
@@ -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;