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
... | ... |
@@ -1674,8 +1674,13 @@ do_option_warnings (struct context *c) |
1674 | 1674 |
if (o->ping_send_timeout && !o->ping_rec_timeout) |
1675 | 1675 |
msg (M_WARN, "WARNING: --ping should normally be used with --ping-restart or --ping-exit"); |
1676 | 1676 |
|
1677 |
- if ((o->username || o->groupname || o->chroot_dir) && (!o->persist_tun || !o->persist_key)) |
|
1678 |
- msg (M_WARN, "WARNING: you are using user/group/chroot without persist-key/persist-tun -- this may cause restarts to fail"); |
|
1677 |
+ if (o->username || o->groupname || o->chroot_dir) |
|
1678 |
+ { |
|
1679 |
+ if (!o->persist_tun) |
|
1680 |
+ msg (M_WARN, "WARNING: you are using user/group/chroot without persist-tun -- this may cause restarts to fail"); |
|
1681 |
+ if (!o->persist_key && !o->pkcs11_id) |
|
1682 |
+ msg (M_WARN, "WARNING: you are using user/group/chroot without persist-key -- this may cause restarts to fail"); |
|
1683 |
+ } |
|
1679 | 1684 |
|
1680 | 1685 |
#if P2MP |
1681 | 1686 |
if (o->pull && o->ifconfig_local && c->first_time) |