summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/vpn.inc6
1 files changed, 2 insertions, 4 deletions
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}.");
OpenPOWER on IntegriCloud