tpws: remote duplicate if

This commit is contained in:
bol-van 2024-11-22 13:04:06 +03:00
parent 46284938ce
commit 033043bdc0

View File

@ -495,8 +495,11 @@ static bool connect_remote_conn(tproxy_conn_t *conn)
bool bHostExcluded; bool bHostExcluded;
conn->track.b_host_matches = HostlistCheck(conn->track.dp, conn->track.hostname, &bHostExcluded, false); conn->track.b_host_matches = HostlistCheck(conn->track.dp, conn->track.hostname, &bHostExcluded, false);
conn->track.b_host_checked = true; conn->track.b_host_checked = true;
if (!conn->track.b_host_matches) conn->track.b_ah_check = !bHostExcluded; if (!conn->track.b_host_matches)
if (!conn->track.b_host_matches) mss = 0; {
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 else
{ {
DBGPRINT("conn fd=%d has no unsent\n", conn->fd); DBGPRINT("conn fd=%d has no unsent\n", conn->fd);
conn->bFlowIn = false; conn->bFlowIn = false;
epoll_update_flow(conn); epoll_update_flow(conn);