Skip to content

Commit f90a267

Browse files
committed
Merge pull request monero-project#9820
50897a6 Limit scope of TCP checks to incoming only (Lee *!* Clagett)
2 parents 44523ca + 50897a6 commit f90a267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/epee/include/net/abstract_tcp_server2.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ namespace net_utils
908908
auto *limit = static_cast<shared_state&>(
909909
connection_basic::get_state()
910910
).plimit;
911-
if (limit && limit->is_host_limit(*real_remote))
911+
if (is_income && limit && limit->is_host_limit(*real_remote))
912912
return false;
913913

914914
ec_t ec;

0 commit comments

Comments
 (0)