]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Check whether in pull_mode before warning about previous connection blocks
authorSelva Nair <selva.nair@gmail.com>
Fri, 15 Sep 2017 18:46:15 +0000 (14:46 -0400)
committerGert Doering <gert@greenie.muc.de>
Sat, 30 Sep 2017 17:19:23 +0000 (19:19 +0200)
commit422ecdac4a2738cd269361e048468d8b58793c4e
treee3563b1f15ca305042f9aef539ac028a74f655ca
parentcdeba63ca3a9e5c765edecd11745e9e2cc1b945d
Check whether in pull_mode before warning about previous connection blocks

In particular, this eliminates the message that says "explicit-exit-notify
is ignored by previous <connection> blocks" when the option is pushed.

Note: pull_mode is identified as "allowed & OPT_P_PULL_MODE" matching
with the definition in add_options().

Reported by: Eike Lohmann e.lohmann@ic3s.de
https://www.mail-archive.com/openvpn-users@lists.sourceforge.net/msg04052.h
tml

v2: move the check to verify_permissions() as suggested by
    Gert <gert@greenie.muc.de>

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <1505501175-9016-1-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15452.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c