mirror of
https://github.com/monero-project/monero.git
synced 2025-06-08 11:02:44 -04:00
Limit scope of TCP checks to incoming only
This commit is contained in:
parent
8d6aff9590
commit
50897a6871
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue