summaryrefslogtreecommitdiffstats
path: root/src/lib/connections/tunnel
diff options
context:
space:
mode:
authorAnthony Ruhier <anthony.ruhier@gmail.com>2015-01-11 19:47:17 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2015-01-12 22:08:40 +0100
commitcf675b4ab8e56267b56e2d8bc2a30f87f3502abb (patch)
tree23d7d04962caa8cd121bf2bb5694b43bc9edd014 /src/lib/connections/tunnel
parent0cc69f13c2355831e8f07962c072c09ca35fd5f3 (diff)
downloadnetctl-cf675b4ab8e56267b56e2d8bc2a30f87f3502abb.tar.gz
netctl-cf675b4ab8e56267b56e2d8bc2a30f87f3502abb.tar.xz
Add support for keys to tunnel connections
Only relevant for GRE tunneling.
Diffstat (limited to 'src/lib/connections/tunnel')
-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