Fix inetd mode (fix #399)

This commit is contained in:
Yves Rutschle 2024-05-16 21:30:11 +02:00
parent 684374f353
commit 8166be1a09
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,6 @@
v2.1.1:
Fix inetd mode.
v2.1.0:
Support for the Landlock LSM. After initial setup,
sslh gives up all local file access rights.

View File

@ -37,6 +37,7 @@
#include "common.h"
#include "probe.h"
#include "log.h"
#include "tcp-probe.h"
/* Constants for options that have no one-character shorthand */
#define OPT_ONTIMEOUT 257
@ -246,6 +247,7 @@ int main(int argc, char *argv[], char* envp[])
if (cfg.inetd)
{
close(fileno(stderr)); /* Make sure no error will go to client */
tcp_init();
start_shoveler(0);
exit(0);
}