From: Michael Tremer Date: Thu, 3 Aug 2017 15:20:19 +0000 (+0000) Subject: ipsec: Support binding a connection to a certain address X-Git-Tag: 009~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e8ad776b19531725e9d30d0752ac2cea154c979;p=network.git ipsec: Support binding a connection to a certain address Signed-off-by: Michael Tremer --- 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"