Skip to content

Commit 77829be

Browse files
ordexcron2
authored andcommitted
close_tun: print interface type consistently in message
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]>
1 parent 252e5d6 commit 77829be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/openvpn/init.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,9 @@ do_open_tun(struct context *c)
19461946
static void
19471947
do_close_tun_simple(struct context *c)
19481948
{
1949-
msg(D_CLOSE, "Closing TUN/TAP interface");
1949+
msg(D_CLOSE, "Closing %s interface",
1950+
dco_enabled(&c->options) ? "DCO" : "TUN/TAP");
1951+
19501952
if (c->c1.tuntap)
19511953
{
19521954
if (!c->options.ifconfig_noexec)

0 commit comments

Comments
 (0)