Skip to content

Commit

Permalink
MINOR: config: Option --transparent can be set via configuration file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
julthomas committed Aug 26, 2013
1 parent 569c71f commit 43a9bc8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions basic.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ verbose: false;
foreground: false;
inetd: false;
numeric: false;
transparent: false;
timeout: 2;
user: "nobody";
pidfile: "/var/run/sslh.pid";
Expand Down
1 change: 1 addition & 0 deletions example.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ verbose: true;
foreground: true;
inetd: false;
numeric: false;
transparent: false;
timeout: 2;
user: "nobody";
pidfile: "/var/run/sslh.pid";
Expand Down
1 change: 1 addition & 0 deletions sslh-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 43a9bc8

Please sign in to comment.