Use proper IPsec enable test. Fixes #6351

This commit is contained in:
jim-p 2016-05-12 13:02:20 -04:00
parent aec067d17d
commit ada85fc22e

View File

@ -46,7 +46,7 @@ if (file_exists("{$g['varrun_path']}/booting")) {
return;
}
if (isset($config['ipsec']['enable'])) {
if (ipsec_enabled()) {
sleep(15);
log_error("IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing.");
} else {