]> git.ipfire.org Git - people/ms/network.git/commitdiff
IPsec: Fix routing in tunnel mode
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 4 Mar 2018 16:19:55 +0000 (16:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Mar 2018 20:19:13 +0000 (20:19 +0000)
Two syntax errors make the routing in tunnel mode non working

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/helpers/ipsec-updown

index 3764085f452381a4bb02eb0fcfef9edf049a23ac..185c2c72b26dcba93aa7a5c12b059f52ce6789a9 100644 (file)
@@ -108,7 +108,7 @@ case "${PLUTO_VERB}" in
                                fi
                        else
                                # Get the device which we use to peer with the other site.
-                               ME_DEVICE = "$(device_get_by_ip_address "${PLUTO_ME}")"
+                               ME_DEVICE="$(device_get_by_assigned_ip_address "${PLUTO_ME}")"
 
                                # We can only go on if we found a device.
                                if isset ME_DEVICE; then