Skip to content

Commit 50897a6

Browse files
committed
Limit scope of TCP checks to incoming only
1 parent 8d6aff9 commit 50897a6

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)