Merge pull request #12 from vapier/master

sslh-fork: close all listening sockets in shoveler
This commit is contained in:
yrutschle 2014-02-09 13:59:10 +01:00
commit e6318ddde0
1 changed files with 2 additions and 1 deletions

View File

@ -157,7 +157,8 @@ void main_loop(int listen_sockets[], int num_addr_listen)
if (!fork())
{
close(listen_sockets[i]);
for (i = 0; i < num_addr_listen; ++i)
close(listen_sockets[i]);
start_shoveler(in_socket);
exit(0);
}