]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add warning for using connection block variables after connection blocks
authorArne Schwabe <arne@rfc2549.org>
Tue, 17 Dec 2013 10:22:47 +0000 (11:22 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 17 Dec 2013 12:49:44 +0000 (13:49 +0100)
commitd931524fad9aebc2de1acf4fe66ac594b30e33ef
treeae7c937d4da5cbc4a4349c0c8edf75117ab9d850
parentc79fa3b0bb63bf7833f5a1c163bd30433c213b6a
Add warning for using connection block variables after connection blocks

In 2.3  some options that were allowed only in global config before have
been moved to connection blocks. This changes the behaviour if the
variables were defined after connection block. This patch adds a warning
to catch these mistakes.

Also let warnings errors show [CONNECTION-OPTIONS] instead of [CMD-LINE]
for connection blocks
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1387275767-10303-1-git-send-email-arne@rfc2549.org>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8117

Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit cd6555e0159987ef264789f4976053ce2aa5fc20)
src/openvpn/options.c