summaryrefslogtreecommitdiffstats
path: root/src/lib/connections/tuntap
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/connections/tuntap')
-rw-r--r--src/lib/connections/tuntap6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/connections/tuntap b/src/lib/connections/tuntap
index 0191ae0..0bf53cc 100644
--- a/src/lib/connections/tuntap
+++ b/src/lib/connections/tuntap
@@ -11,8 +11,8 @@ tuntap_up() {
return 1
fi
- ip tuntap add dev "$Interface" mode "$Mode" \
- ${User:+user "$User"} ${Group:+group "$Group"}
+ do_debug ip tuntap add dev "$Interface" mode "$Mode" \
+ ${User:+user "$User"} ${Group:+group "$Group"} || return
bring_interface_up "$Interface"
IP=${IP-no} ip_set
@@ -21,7 +21,7 @@ tuntap_up() {
tuntap_down() {
ip_unset
bring_interface_down "$Interface"
- ip tuntap del dev "$Interface" mode "$Mode"
+ ip tuntap delete dev "$Interface" mode "$Mode"
}