mirror of https://github.com/0intro/libtask
tcpproxy: close fd
This commit is contained in:
parent
f75fc7ab04
commit
728d616727
|
@ -57,6 +57,7 @@ taskmain(int argc, char **argv)
|
||||||
fprintf(stderr, "connection from %s:%d\n", remote, rport);
|
fprintf(stderr, "connection from %s:%d\n", remote, rport);
|
||||||
taskcreate(proxytask, (void*)(uintptr_t)cfd, STACK);
|
taskcreate(proxytask, (void*)(uintptr_t)cfd, STACK);
|
||||||
}
|
}
|
||||||
|
close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue