From 3e8ad776b19531725e9d30d0752ac2cea154c979 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 3 Aug 2017 15:20:19 +0000 Subject: [PATCH] ipsec: Support binding a connection to a certain address Signed-off-by: Michael Tremer --- src/functions/functions.ipsec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/functions/functions.ipsec b/src/functions/functions.ipsec index f92f72ba..cefab117 100644 --- a/src/functions/functions.ipsec +++ b/src/functions/functions.ipsec @@ -787,7 +787,14 @@ _ipsec_connection_to_strongswan_connection() { esac print # empty line - # XXX Local Address + # Local Address + print_indent 2 "# Local Address" + if isset LOCAL_ADDRESS; then + print_indent 2 "local_addrs = ${LOCAL_ADDRESS}" + else + print_indent 2 "local_addrs = %any" + fi + print # Remote Address print_indent 2 "# Remote Address" -- 2.47.2