From 2c3518beb49d9e0e76c6dade54622064b979c305 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yves=20Rutschl=C3=A9?= <git1@rutschle.net>
Date: Sat, 6 Jan 2018 22:42:39 +0000
Subject: [PATCH] configuration examples for fork option

---
 basic.cfg   | 2 +-
 example.cfg | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/basic.cfg b/basic.cfg
index f9e8176..4ef602b 100644
--- a/basic.cfg
+++ b/basic.cfg
@@ -20,7 +20,7 @@ listen:
 
 protocols:
 (
-     { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; },
+     { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; fork: true; },
      { name: "openvpn"; host: "localhost"; port: "1194"; },
      { name: "xmpp"; host: "localhost"; port: "5222"; },
      { name: "http"; host: "localhost"; port: "80"; },
diff --git a/example.cfg b/example.cfg
index aad3402..18a1f0a 100644
--- a/example.cfg
+++ b/example.cfg
@@ -39,6 +39,8 @@ listen:
 #               1 to log each incoming connection
 #   keepalive:  Should TCP keepalive be on or off for that
 #               connection (default is off)
+#   fork: Should a new process be forked for this protocol?
+#         (only useful for sslh-select)
 #
 #  Probe-specific options:
 #       tls:
@@ -59,7 +61,7 @@ listen:
  
 protocols:
 (
-     { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; keepalive: true; },
+     { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; keepalive: true; fork: true; },
      { name: "http"; host: "localhost"; port: "80"; },
 
 # match BOTH ALPN/SNI