diff --git a/sslh-conf.c b/sslh-conf.c index 907d9b6..0fba913 100644 --- a/sslh-conf.c +++ b/sslh-conf.c @@ -1,5 +1,5 @@ /* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README) - * on Sat Mar 9 11:35:00 2019. */ + * on Sat Mar 9 12:35:49 2019. */ #define _GNU_SOURCE #include @@ -645,6 +645,7 @@ int sslhcfg_cl_parse(int argc, char* argv[], struct sslhcfg_item* cfg) { param_len = pmatch[2].rm_eo - pmatch[2].rm_so; group->port = calloc(1, param_len + 1); memcpy(group->port, sslhcfg_ssh->sval [cl_i]+pmatch[2].rm_so, param_len); + group->fork = *((char*)"1") - '0'; } #define MAX_MATCH 10 for (cl_i = 0; cl_i < sslhcfg_tls->count; cl_i++) { diff --git a/sslh-conf.h b/sslh-conf.h index 85f831a..7391cdd 100644 --- a/sslh-conf.h +++ b/sslh-conf.h @@ -1,5 +1,5 @@ /* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README) - * on Sat Mar 9 11:35:00 2019. */ + * on Sat Mar 9 12:35:49 2019. */ #ifndef C2S_SSLHCFG_H #define C2S_SSLHCFG_H diff --git a/sslhconf.cfg b/sslhconf.cfg index 9942ad8..0c52c11 100644 --- a/sslhconf.cfg +++ b/sslhconf.cfg @@ -117,7 +117,8 @@ cl_groups: ( targets: ( { path: "name"; value: "ssh" }, { path: "host"; value: "$1" }, - { path: "port"; value: "$2" } + { path: "port"; value: "$2" }, + { path: "fork"; value: 1 } ); }, { name: "tls"; pattern: "(\w+):(\w+)"; description: "Set up TLS/SSL target";