Fix OVPN_ADDITIONAL_CLIENT_CONFIG

OVPN_ADDITIONAL_CLIENT_CONFIG isn't available in combined mode
This commit is contained in:
yanndegat 2017-02-06 15:49:31 +01:00 committed by GitHub
parent aaf2c0fee1
commit 1a984ba9cd

View File

@ -37,8 +37,8 @@ nobind
dev $OVPN_DEVICE dev $OVPN_DEVICE
key-direction 1 key-direction 1
remote-cert-tls server remote-cert-tls server
remote $OVPN_CN $OVPN_PORT $OVPN_PROTO remote $OVPN_CN $OVPN_PORT $OVPN_PROTO
$OVPN_ADDITIONAL_CLIENT_CONFIG
" "
if [ "$mode" == "combined" ]; then if [ "$mode" == "combined" ]; then
echo " echo "
@ -62,7 +62,6 @@ key ${cn}.key
ca ca.crt ca ca.crt
cert ${cn}.crt cert ${cn}.crt
tls-auth ta.key 1 tls-auth ta.key 1
$OVPN_ADDITIONAL_CLIENT_CONFIG
" "
fi fi