mirror of
https://github.com/monero-project/monero.git
synced 2025-12-09 00:21:28 +09:00
Merge pull request #9820
50897a687 Limit scope of TCP checks to incoming only (Lee *!* Clagett)
This commit is contained in:
commit
f90a267fa3
@ -908,7 +908,7 @@ namespace net_utils
|
|||||||
auto *limit = static_cast<shared_state&>(
|
auto *limit = static_cast<shared_state&>(
|
||||||
connection_basic::get_state()
|
connection_basic::get_state()
|
||||||
).plimit;
|
).plimit;
|
||||||
if (limit && limit->is_host_limit(*real_remote))
|
if (is_income && limit && limit->is_host_limit(*real_remote))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
ec_t ec;
|
ec_t ec;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user