From 4012b14bda62ee457f5b097e700452c472762b0a Mon Sep 17 00:00:00 2001 From: ruti <> Date: Wed, 13 Nov 2024 17:44:46 +0300 Subject: [PATCH] Ignore events until the remote connection is established --- extend.c | 1 + proxy.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extend.c b/extend.c index 99f5978..e255d6f 100644 --- a/extend.c +++ b/extend.c @@ -409,6 +409,7 @@ int on_first_tunnel(struct poolhd *pool, uniperror("mod_etype"); return -1; } + val->pair->type = EV_FIRST_TUNNEL; return send_saved_req(pool, val->pair, buffer, bfsize); } ssize_t n = tcp_recv_hook(pool, val, buffer, bfsize); diff --git a/proxy.c b/proxy.c index 4f68eef..3f88324 100644 --- a/proxy.c +++ b/proxy.c @@ -439,7 +439,7 @@ int create_conn(struct poolhd *pool, pair->in6 = dst->in6; #endif pair->flag = FLAG_CONN; - //val->type = EV_IGNORE; + val->type = EV_IGNORE; return 0; }