Skip to content

Commit

Permalink
core: tcp - skip checking when tcp_accept_iplimit is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Feb 19, 2024
1 parent dad7f3f commit e3e6fd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/tcp_main.c
Expand Up @@ -1169,6 +1169,10 @@ int tcp_connection_limit_srcip(union sockaddr_union *srcaddr, int limit)
int n;
int i;

if(limit <= 0) {
return 0;
}

n = 0;
su2ip_addr(&src_ip, srcaddr);
TCPCONN_LOCK;
Expand Down

0 comments on commit e3e6fd7

Please sign in to comment.