nat: Using the right fd can be a good idea as well
This commit is contained in:
parent
872d7683d3
commit
569ee123a2
|
@ -743,7 +743,7 @@ static int ipaccess_listen_bsc_cb(struct bsc_fd *bfd, unsigned int what)
|
|||
}
|
||||
|
||||
on = 1;
|
||||
rc = setsockopt(bfd->fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
|
||||
rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
|
||||
if (rc != 0)
|
||||
LOGP(DNAT, LOGL_ERROR, "Failed to set TCP_NODELAY: %s\n", strerror(errno));
|
||||
|
||||
|
|
Loading…
Reference in New Issue