sslh: add transparent proxy support
authorGabor Seljan <redacted>
Sun, 24 May 2020 16:58:37 +0000 (18:58 +0200)
committerGabor Seljan <redacted>
Sun, 24 May 2020 16:58:37 +0000 (18:58 +0200)
Signed-off-by: Gabor Seljan <redacted>
net/sslh/files/sslh.config
net/sslh/files/sslh.init

index b9e047dc6d3f3060147a9f87fe08439b7f5db229..c5f832cdfb60fab0e7320a574d2ef9d96b58c7af 100644 (file)
@@ -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'
index 6e71a5394dae7ab7efb3cf551b13874e9f7fa8fd..401beb689b538bff6539b6fa1e400f0484af3b70 100644 (file)
@@ -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.
git clone https://git.99rst.org/PROJECT