]> git.ipfire.org Git - people/stevee/network.git/commitdiff
ipsec: Support binding a connection to a certain address
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Aug 2017 15:20:19 +0000 (15:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Aug 2017 15:20:19 +0000 (15:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.ipsec

index f92f72ba044abc85132b00f158383d0a702aedb2..cefab1171dfe3ff5931ef783b7bf7addff9d8459 100644 (file)
@@ -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"