From b04eb23bff28644937149e03a926eade412f70b7 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 31 May 2009 15:55:09 -0400 Subject: clarify log message --- etc/inc/vpn.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'etc') diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 0d38c10..e6ec6a7 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -803,9 +803,7 @@ EOD; } } } - } - else - { + } else { if(stristr($route_str, "/{$rgip}/")) { mwexec("/sbin/route delete -host {$rgip}"); } @@ -1666,7 +1664,7 @@ function reload_tunnel_spd_policy($phase1, $phase2, $old_phase1, $old_phase2) { "{$phase2['protocol']}/tunnel/{$rgip}-" . "{$ep}/unique;\n"; - log_error("IPSEC: Tunnel '{$phase1['descr']}' has changed IP from '{$old_gw}' to '{$rgip}', reloading policy"); + log_error("Reloading IPsec tunnel '{$tunnel['descr']}'. Previous IP '{$oldgw}', current IP '{$rgip}'. Reloading policy"); $now = time(); $spdfile = tempnam("{$g['tmp_path']}", "spd.conf.reload.{$now}."); -- cgit v1.1