Merge pull request #136 from c7f-m0d3/master

fix non-functional max_conns_per_ip
This commit is contained in:
happyCoder92 2020-03-19 13:50:35 +01:00 committed by GitHub
commit 868fb45bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -409,7 +409,7 @@ static bool initParent(nsjconf_t* nsjconf, pid_t pid, int pipefd) {
}
bool runChild(nsjconf_t* nsjconf, int netfd, int fd_in, int fd_out, int fd_err) {
if (!net::limitConns(nsjconf, fd_in)) {
if (!net::limitConns(nsjconf, netfd)) {
return true;
}
unsigned long flags = 0UL;