mirror of https://github.com/moparisthebest/sslh
Merge pull request #3 from julthomas/jth/config-transparent
MINOR: config: Option --transparent can be set via configuration file
This commit is contained in:
commit
22f4a4bc47
|
@ -5,6 +5,7 @@ verbose: false;
|
||||||
foreground: false;
|
foreground: false;
|
||||||
inetd: false;
|
inetd: false;
|
||||||
numeric: false;
|
numeric: false;
|
||||||
|
transparent: false;
|
||||||
timeout: 2;
|
timeout: 2;
|
||||||
user: "nobody";
|
user: "nobody";
|
||||||
pidfile: "/var/run/sslh.pid";
|
pidfile: "/var/run/sslh.pid";
|
||||||
|
|
|
@ -7,6 +7,7 @@ verbose: true;
|
||||||
foreground: true;
|
foreground: true;
|
||||||
inetd: false;
|
inetd: false;
|
||||||
numeric: false;
|
numeric: false;
|
||||||
|
transparent: false;
|
||||||
timeout: 2;
|
timeout: 2;
|
||||||
user: "nobody";
|
user: "nobody";
|
||||||
pidfile: "/var/run/sslh.pid";
|
pidfile: "/var/run/sslh.pid";
|
||||||
|
|
|
@ -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, "inetd", &inetd);
|
||||||
config_lookup_bool(&config, "foreground", &foreground);
|
config_lookup_bool(&config, "foreground", &foreground);
|
||||||
config_lookup_bool(&config, "numeric", &numeric);
|
config_lookup_bool(&config, "numeric", &numeric);
|
||||||
|
config_lookup_bool(&config, "transparent", &transparent);
|
||||||
|
|
||||||
if (config_lookup_int(&config, "timeout", &timeout) == CONFIG_TRUE) {
|
if (config_lookup_int(&config, "timeout", &timeout) == CONFIG_TRUE) {
|
||||||
probing_timeout = timeout;
|
probing_timeout = timeout;
|
||||||
|
|
Loading…
Reference in New Issue