mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 12:02:28 +02:00
Don't warn user if he uses user/group/chroot and
did not specify persist-key but uses PKCS#11. svn merge -r 847:848 https://svn.openvpn.net/projects/openvpn/contrib/alon/BETA21/openvpn . git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@853 e7ae566f-a301-0410-adde-c780ea21d3b5
This commit is contained in:
parent
f214bb2115
commit
6d89ede657
9
init.c
9
init.c
@ -1674,8 +1674,13 @@ do_option_warnings (struct context *c)
|
||||
if (o->ping_send_timeout && !o->ping_rec_timeout)
|
||||
msg (M_WARN, "WARNING: --ping should normally be used with --ping-restart or --ping-exit");
|
||||
|
||||
if ((o->username || o->groupname || o->chroot_dir) && (!o->persist_tun || !o->persist_key))
|
||||
msg (M_WARN, "WARNING: you are using user/group/chroot without persist-key/persist-tun -- this may cause restarts to fail");
|
||||
if (o->username || o->groupname || o->chroot_dir)
|
||||
{
|
||||
if (!o->persist_tun)
|
||||
msg (M_WARN, "WARNING: you are using user/group/chroot without persist-tun -- this may cause restarts to fail");
|
||||
if (!o->persist_key && !o->pkcs11_id)
|
||||
msg (M_WARN, "WARNING: you are using user/group/chroot without persist-key -- this may cause restarts to fail");
|
||||
}
|
||||
|
||||
#if P2MP
|
||||
if (o->pull && o->ifconfig_local && c->first_time)
|
||||
|
Loading…
Reference in New Issue
Block a user