Skip to content

Commit

Permalink
fix max_conns_per_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikChen committed Nov 4, 2017
1 parent a07ee95 commit 9e355cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ bool netLimitConns(struct nsjconf_t* nsjconf, int connsock) {
struct pids_t* p;
TAILQ_FOREACH(p, &nsjconf->pids, pointers) {
if (memcmp(addr.sin6_addr.s6_addr, p->remote_addr.sin6_addr.s6_addr,
sizeof(*p->remote_addr.sin6_addr.s6_addr)) == 0) {
sizeof(p->remote_addr.sin6_addr.s6_addr)) == 0) {
cnt++;
}
}
Expand Down

0 comments on commit 9e355cb

Please sign in to comment.