From 12df13d44d005ee4e7d53be77dc74a7b9b0fb07e Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Thu, 26 Mar 2009 01:15:36 -0400 Subject: [PATCH] Log actual interface rather than CARP interface --- etc/inc/vpn.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 14e4b520ef..335effc2b0 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -277,7 +277,7 @@ function vpn_ipsec_configure($ipchg = false) { /* if the remote gateway is in the local subnet, then don't add a route */ if(! ip_in_subnet($tunnel['remote-gateway'], "{$subnet_ip}/{$subnet_bits}")) { if(is_ipaddr($gatewayip)) { - log_error("IPSEC interface is not WAN but {$tunnel['interface']}, adding static route for VPN endpoint {$tunnel['remote-gateway']} via {$gatewayip}"); + log_error("IPSEC interface is not WAN but {$parentinterface}, adding static route for VPN endpoint {$tunnel['remote-gateway']} via {$gatewayip}"); mwexec("/sbin/route delete -host {$tunnel['remote-gateway']}"); mwexec("/sbin/route add -host {$tunnel['remote-gateway']} {$gatewayip}"); }