Reload ipsec with dynamic hostnames after bootup that dns is available. Helps: http://forum.pfsense.org/index.php/topic,61301.0.html

This commit is contained in:
Ermal 2013-04-22 20:29:30 +00:00
parent 6a781df676
commit e5b89d371f

View File

@ -357,7 +357,7 @@ voucher_configure();
system_do_shell_commands();
/* start IPsec tunnels */
vpn_ipsec_configure();
$ipsec_dynamic_hosts = vpn_ipsec_configure();
/* start SNMP service */
services_snmpd_configure();
@ -427,6 +427,12 @@ system_syslogd_start();
/* done */
unset($g['booting']);
/* If there are ipsec dynamic hosts try again to reload the tunnels as rc.newipsecdns does */
if ($ipsec_dynamic_hosts) {
vpn_ipsec_refresh_policies();
vpn_ipsec_configure();
}
led_normalize();
conf_mount_ro();