IPsec: Fix routing in tunnel mode

Message ID 1520180395-4665-1-git-send-email-jonatan.schlag@ipfire.org
State Accepted
Commit 1a99a0b295cde8abdf6d63c1179c7db1ca3f904d
Headers
Series IPsec: Fix routing in tunnel mode |

Commit Message

Jonatan Schlag March 5, 2018, 3:19 a.m. UTC
  Two syntax errors make the routing in tunnel mode non working

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 src/helpers/ipsec-updown | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/src/helpers/ipsec-updown b/src/helpers/ipsec-updown
index 3764085..185c2c7 100644
--- a/src/helpers/ipsec-updown
+++ b/src/helpers/ipsec-updown
@@ -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