From 4acc0ea41fd92074bdcbdb0b1678fa2c868e6f1b 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 39a58d1b26..7c671d0e49 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;