sslh: add transparent proxy support
Signed-off-by: Gabor Seljan <sgabe@users.noreply.github.com>
This commit is contained in:
parent
f5fdcf3e7e
commit
499f3ac44b
2 changed files with 6 additions and 0 deletions
|
@ -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'
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue