Skip to content

Commit

Permalink
close_tun: print interface type consistently in message
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg25449.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
ordex authored and cron2 committed Oct 23, 2022
1 parent 252e5d6 commit 77829be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/openvpn/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,9 @@ do_open_tun(struct context *c)
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)
Expand Down

0 comments on commit 77829be

Please sign in to comment.