Skip to content

Commit

Permalink
Fix inetd mode (fix #399)
Browse files Browse the repository at this point in the history
  • Loading branch information
yrutschle committed May 16, 2024
1 parent 684374f commit 8166be1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 2 additions & 0 deletions sslh-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 8166be1

Please sign in to comment.