summaryrefslogtreecommitdiffstats
path: root/src/lib/connections
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/connections')
-rw-r--r--src/lib/connections/tuntap2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/connections/tuntap b/src/lib/connections/tuntap
index 47668b1..d035262 100644
--- a/src/lib/connections/tuntap
+++ b/src/lib/connections/tuntap
@@ -10,7 +10,7 @@ tuntap_up() {
return 1
else
ip tuntap add dev "$Interface" mode "$Mode" \
- user "$User" group "$Group"
+ ${User:+user "$User"} ${Group:+group "$Group"}
fi
bring_interface_up "$Interface"
IP=${IP-no} ip_set