summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/connections/tunnel2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/connections/tunnel b/src/lib/connections/tunnel
index 6f35793..927f7f4 100644
--- a/src/lib/connections/tunnel
+++ b/src/lib/connections/tunnel
@@ -14,7 +14,7 @@ tunnel_up() {
[[ $Mode == *ip6* || $Mode == "any" ]] && family="-6"
do_debug ip "$family" tunnel add "$Interface" mode "$Mode" \
- remote "$Remote" ${Local+local "$Local"} || return
+ remote "$Remote" ${Local:+local "$Local"} ${Key:+key "$Key"} || return
bring_interface_up "$Interface"
ip_set