mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
emailrelay: fix server_tls
The --server-tls is a boolean option and don't have an arg. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
This commit is contained in:
committed by
Josef Schlehofer
parent
caa4f7f8fa
commit
996b2ec672
@@ -6,7 +6,7 @@ config emailrelay 'server'
|
|||||||
# option address_verifier '/usr/local/bin/address-verifier.sh'
|
# option address_verifier '/usr/local/bin/address-verifier.sh'
|
||||||
# option domain 'my.example.com'
|
# option domain 'my.example.com'
|
||||||
# option anonymous '1'
|
# option anonymous '1'
|
||||||
# option server_tls '/etc/path/to/certificate'
|
# option server_tls '1'
|
||||||
# option server_auth '/etc/emailrelay.auth'
|
# option server_auth '/etc/emailrelay.auth'
|
||||||
# option extra_cmdline ''
|
# option extra_cmdline ''
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ config emailrelay 'proxy'
|
|||||||
# option address_verifier '/usr/local/bin/address-verifier.sh'
|
# option address_verifier '/usr/local/bin/address-verifier.sh'
|
||||||
# option domain 'my.example.com'
|
# option domain 'my.example.com'
|
||||||
# option anonymous '1'
|
# option anonymous '1'
|
||||||
# option server_tls '/etc/path/to/certificate'
|
# option server_tls '1'
|
||||||
# option server_auth '/etc/emailrelay.auth'
|
# option server_auth '/etc/emailrelay.auth'
|
||||||
# option client_tls '1'
|
# option client_tls '1'
|
||||||
# option client_auth '/etc/emailrelay.auth'
|
# option client_auth '/etc/emailrelay.auth'
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ emailrelay_instance()
|
|||||||
config_get mode "$1" mode
|
config_get mode "$1" mode
|
||||||
config_get port "$1" port
|
config_get port "$1" port
|
||||||
config_get_bool remote_clients "$1" remote_clients
|
config_get_bool remote_clients "$1" remote_clients
|
||||||
config_get server_tls "$1" server_tls
|
config_get_bool server_tls "$1" server_tls
|
||||||
config_get server_auth "$1" server_auth
|
config_get server_auth "$1" server_auth
|
||||||
config_get extra_cmdline "$1" extra_cmdline
|
config_get extra_cmdline "$1" extra_cmdline
|
||||||
config_get smarthost "$1" smarthost
|
config_get smarthost "$1" smarthost
|
||||||
@@ -36,7 +36,7 @@ emailrelay_instance()
|
|||||||
[ -n "$smarthost" ] && procd_append_param command "$smarthost"
|
[ -n "$smarthost" ] && procd_append_param command "$smarthost"
|
||||||
[ -n "$port" ] && procd_append_param command --port "$port"
|
[ -n "$port" ] && procd_append_param command --port "$port"
|
||||||
[ "$remote_clients" = 1 ] && procd_append_param command --remote-clients
|
[ "$remote_clients" = 1 ] && procd_append_param command --remote-clients
|
||||||
[ -n "$server_tls" ] && procd_append_param command --server-tls "$server_tls"
|
[ "$server_tls" = 1 ] && procd_append_param command --server-tls
|
||||||
[ -n "$server_auth" ] && procd_append_param command --server-auth "$server_auth"
|
[ -n "$server_auth" ] && procd_append_param command --server-auth "$server_auth"
|
||||||
[ "$client_tls" = 1 ] && procd_append_param command --client-tls
|
[ "$client_tls" = 1 ] && procd_append_param command --client-tls
|
||||||
[ -n "$client_auth" ] && procd_append_param command --client-auth "$client_auth"
|
[ -n "$client_auth" ] && procd_append_param command --client-auth "$client_auth"
|
||||||
|
|||||||
Reference in New Issue
Block a user