Skip to content

Commit

Permalink
Limit scope of TCP checks to incoming only
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnerd committed Feb 26, 2025
1 parent 0232839 commit 4acc0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/epee/include/net/abstract_tcp_server2.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4acc0ea

Please sign in to comment.