diff options
Diffstat (limited to 'src/lib/connections/tuntap')
-rw-r--r-- | src/lib/connections/tuntap | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/connections/tuntap b/src/lib/connections/tuntap index 149c842..2c00839 100644 --- a/src/lib/connections/tuntap +++ b/src/lib/connections/tuntap @@ -8,10 +8,11 @@ tuntap_up() { if is_interface "$Interface"; then report_error "Interface '$Interface' already exists" return 1 - else - ip tuntap add dev "$Interface" mode "$Mode" \ - ${User:+user "$User"} ${Group:+group "$Group"} fi + + ip tuntap add dev "$Interface" mode "$Mode" \ + ${User:+user "$User"} ${Group:+group "$Group"} + bring_interface_up "$Interface" IP=${IP-no} ip_set } |