From 499f3ac44bbf40db924459030c33c35a0d0c2beb Mon Sep 17 00:00:00 2001 From: Gabor Seljan Date: Sun, 24 May 2020 18:58:37 +0200 Subject: [PATCH] sslh: add transparent proxy support Signed-off-by: Gabor Seljan --- net/sslh/files/sslh.config | 3 +++ net/sslh/files/sslh.init | 3 +++ 2 files changed, 6 insertions(+) diff --git a/net/sslh/files/sslh.config b/net/sslh/files/sslh.config index b9e047dc6..c5f832cdf 100644 --- a/net/sslh/files/sslh.config +++ b/net/sslh/files/sslh.config @@ -28,5 +28,8 @@ config 'sslh' 'default' # verbose defaults to off # -v option 'verbose' '0' + # transparent defaults to false + # --transparent + option 'transparent' '0' # use external config file # option configfile '/etc/sslh.conf' diff --git a/net/sslh/files/sslh.init b/net/sslh/files/sslh.init index 6e71a5394..401beb689 100644 --- a/net/sslh/files/sslh.init +++ b/net/sslh/files/sslh.init @@ -47,6 +47,9 @@ start_instance() { # J) http parameter config_get val "${section}" http [ -n "${val}" ] && append args "--http ${val}" + # K) transparent parameter + config_get_bool val "${section}" transparent 0 + [ "${val}" -ne 0 ] && append args "--transparent" # Defaults were removed for --user and --pidfile options # in sslh 1.11; Define them here instead.