From 033043bdc03cf97dc17dedccc420e7fb08f94670 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 22 Nov 2024 13:04:06 +0300 Subject: [PATCH] tpws: remote duplicate if --- tpws/tpws_conn.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tpws/tpws_conn.c b/tpws/tpws_conn.c index 726a464..7f8f834 100644 --- a/tpws/tpws_conn.c +++ b/tpws/tpws_conn.c @@ -495,8 +495,11 @@ static bool connect_remote_conn(tproxy_conn_t *conn) bool bHostExcluded; conn->track.b_host_matches = HostlistCheck(conn->track.dp, conn->track.hostname, &bHostExcluded, false); conn->track.b_host_checked = true; - if (!conn->track.b_host_matches) conn->track.b_ah_check = !bHostExcluded; - if (!conn->track.b_host_matches) mss = 0; + if (!conn->track.b_host_matches) + { + conn->track.b_ah_check = !bHostExcluded; + mss = 0; + } } } } @@ -1676,7 +1679,6 @@ int event_loop(const int *listen_fd, size_t listen_fd_ct) } else { - DBGPRINT("conn fd=%d has no unsent\n", conn->fd); conn->bFlowIn = false; epoll_update_flow(conn);