diff options
| author | Lee *!* Clagett <code@leeclagett.com> | 2025-02-24 21:55:35 -0500 |
|---|---|---|
| committer | Lee *!* Clagett <code@leeclagett.com> | 2025-02-26 13:09:20 -0500 |
| commit | 4acc0ea41fd92074bdcbdb0b1678fa2c868e6f1b (patch) | |
| tree | 62ba1cc74fd1cc7fb71064bef65e7e25aee52647 /contrib | |
| parent | 0232839913b13cf0ab0bb7ad25fff0c05f37d2fe (diff) | |
| download | monzero-core-4acc0ea41fd92074bdcbdb0b1678fa2c868e6f1b.tar.gz monzero-core-4acc0ea41fd92074bdcbdb0b1678fa2c868e6f1b.tar.xz monzero-core-4acc0ea41fd92074bdcbdb0b1678fa2c868e6f1b.zip | |
Limit scope of TCP checks to incoming only
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/epee/include/net/abstract_tcp_server2.inl | 2 |
1 files changed, 1 insertions, 1 deletions
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<shared_state&>( 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; |
