From 50897a6871b77229baed33ba7ab83f8d7c02c340 Mon Sep 17 00:00:00 2001 From: Lee *!* Clagett Date: Mon, 24 Feb 2025 21:55:35 -0500 Subject: [PATCH] Limit scope of TCP checks to incoming only --- contrib/epee/include/net/abstract_tcp_server2.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/epee/include/net/abstract_tcp_server2.inl b/contrib/epee/include/net/abstract_tcp_server2.inl index 39a58d1b2..7c671d0e4 100644 --- a/contrib/epee/include/net/abstract_tcp_server2.inl +++ b/contrib/epee/include/net/abstract_tcp_server2.inl @@ -908,7 +908,7 @@ namespace net_utils auto *limit = static_cast( connection_basic::get_state() ).plimit; - if (limit && limit->is_host_limit(*real_remote)) + if (is_income && limit && limit->is_host_limit(*real_remote)) return false; ec_t ec;