aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;