sslh: add transparent proxy support

Signed-off-by: Gabor Seljan <sgabe@users.noreply.github.com>
This commit is contained in:
Gabor Seljan 2020-05-24 18:58:37 +02:00
parent f5fdcf3e7e
commit 499f3ac44b
2 changed files with 6 additions and 0 deletions

View 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'

View 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.