diff options
| author | tobtoht <tob@featherwallet.org> | 2025-03-11 19:14:15 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2025-03-11 19:14:15 +0000 |
| commit | 515b2ffadf87c32b872dbdcc5223109e9d5e678d (patch) | |
| tree | c85cc9edcc94ce14e7b25681a2a73ded5649da83 | |
| parent | 3da68db9789697d30dc309df2f1da5d348bc4ce2 (diff) | |
| parent | 4acc0ea41fd92074bdcbdb0b1678fa2c868e6f1b (diff) | |
| download | monzero-core-515b2ffadf87c32b872dbdcc5223109e9d5e678d.tar.gz monzero-core-515b2ffadf87c32b872dbdcc5223109e9d5e678d.tar.xz monzero-core-515b2ffadf87c32b872dbdcc5223109e9d5e678d.zip | |
Merge pull request #9823
4acc0ea41 Limit scope of TCP checks to incoming only (Lee *!* Clagett)
| -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; |
