From cf675b4ab8e56267b56e2d8bc2a30f87f3502abb Mon Sep 17 00:00:00 2001 From: Anthony Ruhier Date: Sun, 11 Jan 2015 19:47:17 +0100 Subject: Add support for keys to tunnel connections Only relevant for GRE tunneling. --- src/lib/connections/tunnel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-24-g4f1b