When closing the tunnel interface we know if we were using DCO or not.
for this reason we can customize the closing message and make it
consistent with the opening one.
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <
20221022205521.29406-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25449.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
static void
do_close_tun_simple(struct context *c)
{
- msg(D_CLOSE, "Closing TUN/TAP interface");
+ msg(D_CLOSE, "Closing %s interface",
+ dco_enabled(&c->options) ? "DCO" : "TUN/TAP");
+
if (c->c1.tuntap)
{
if (!c->options.ifconfig_noexec)