make ssh fork when on command line as used to be the case before

This commit is contained in:
yrutschle 2019-03-09 12:36:57 +01:00
parent 5a213c9650
commit e0312b4a9d
3 changed files with 5 additions and 3 deletions

View File

@ -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 <string.h>
@ -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++) {

View File

@ -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

View File

@ -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";