forked from yrutschle/sslh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
echosrv.cfg
37 lines (31 loc) · 983 Bytes
/
echosrv.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# conf2struct for echosrv
header: "echosrv-conf.h";
parser: "echosrv-conf.c";
printer: true;
conffile_option: ("F", "config");
config: {
name: "echocfg",
type: "list",
items: (
{name: "udp", type: "bool"; default: false; },
{name: "prefix", type: "string"; },
{ name: "listen",
type: "list",
items: (
{ name: "host"; type: "string"; var: true; },
{ name: "port"; type: "string"; var: true; }
)
}
)
}
cl_groups: (
{ name: "listen"; pattern: "(.+):(\w+)"; description: "Listen on host:port";
short: "p"; argdesc: "<host:port>";
list: "listen";
# no override, this just adds to the list (and thus can be specified several times)
targets: (
{ path: "host"; value: "$1" },
{ path: "port"; value: "$2" }
);
}
)