From 43a9bc8fd969f78c56376ac794efd78e75dfe6a4 Mon Sep 17 00:00:00 2001 From: Julien Thomas Date: Mon, 26 Aug 2013 20:52:27 +0200 Subject: [PATCH] MINOR: config: Option --transparent can be set via configuration file This patch allows to set option --transparent in an SSLH configuration file. Without it, transparent mode is only possible by passing the option on the command line. --- basic.cfg | 1 + example.cfg | 1 + sslh-main.c | 1 + 3 files changed, 3 insertions(+) diff --git a/basic.cfg b/basic.cfg index 4ed0317..f132c16 100644 --- a/basic.cfg +++ b/basic.cfg @@ -5,6 +5,7 @@ verbose: false; foreground: false; inetd: false; numeric: false; +transparent: false; timeout: 2; user: "nobody"; pidfile: "/var/run/sslh.pid"; diff --git a/example.cfg b/example.cfg index b521cdc..0da43cc 100644 --- a/example.cfg +++ b/example.cfg @@ -7,6 +7,7 @@ verbose: true; foreground: true; inetd: false; numeric: false; +transparent: false; timeout: 2; user: "nobody"; pidfile: "/var/run/sslh.pid"; diff --git a/sslh-main.c b/sslh-main.c index 66e64c0..26f8c73 100644 --- a/sslh-main.c +++ b/sslh-main.c @@ -270,6 +270,7 @@ static int config_parse(char *filename, struct addrinfo **listen, struct proto * config_lookup_bool(&config, "inetd", &inetd); config_lookup_bool(&config, "foreground", &foreground); config_lookup_bool(&config, "numeric", &numeric); + config_lookup_bool(&config, "transparent", &transparent); if (config_lookup_int(&config, "timeout", &timeout) == CONFIG_TRUE) { probing_timeout = timeout;