mirror of
https://github.com/yrutschle/sslh.git
synced 2025-05-31 23:59:22 +03:00
make ssh fork when on command line as used to be the case before
This commit is contained in:
parent
5a213c9650
commit
e0312b4a9d
@ -1,5 +1,5 @@
|
|||||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
/* 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
|
#define _GNU_SOURCE
|
||||||
#include <string.h>
|
#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;
|
param_len = pmatch[2].rm_eo - pmatch[2].rm_so;
|
||||||
group->port = calloc(1, param_len + 1);
|
group->port = calloc(1, param_len + 1);
|
||||||
memcpy(group->port, sslhcfg_ssh->sval [cl_i]+pmatch[2].rm_so, param_len);
|
memcpy(group->port, sslhcfg_ssh->sval [cl_i]+pmatch[2].rm_so, param_len);
|
||||||
|
group->fork = *((char*)"1") - '0';
|
||||||
}
|
}
|
||||||
#define MAX_MATCH 10
|
#define MAX_MATCH 10
|
||||||
for (cl_i = 0; cl_i < sslhcfg_tls->count; cl_i++) {
|
for (cl_i = 0; cl_i < sslhcfg_tls->count; cl_i++) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
/* 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
|
#ifndef C2S_SSLHCFG_H
|
||||||
#define C2S_SSLHCFG_H
|
#define C2S_SSLHCFG_H
|
||||||
|
@ -117,7 +117,8 @@ cl_groups: (
|
|||||||
targets: (
|
targets: (
|
||||||
{ path: "name"; value: "ssh" },
|
{ path: "name"; value: "ssh" },
|
||||||
{ path: "host"; value: "$1" },
|
{ 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";
|
{ name: "tls"; pattern: "(\w+):(\w+)"; description: "Set up TLS/SSL target";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user