mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
6a781df676
commit
e5b89d371f
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user