Bug #2896 ยป ipsec-failover-testfix1.patch
| etc/rc.newipsecdns | ||
|---|---|---|
| 45 | 45 |
} |
| 46 | 46 |
$ipseclck = lock('ipsecdns', LOCK_EX);
|
| 47 | 47 |
|
| 48 |
if(isset($config['ipsec']['enable'])) |
|
| 48 |
if(isset($config['ipsec']['enable'])) {
|
|
| 49 |
sleep(15); |
|
| 49 | 50 |
log_error("IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing.");
|
| 51 |
} |
|
| 50 | 52 |
/* We will walk the list of hostnames found in the ipsec tunnel |
| 51 | 53 |
* configuration. Since we are already triggered by filterdns |
| 52 | 54 |
* that a hostname has changed we can proceed to compare the |
| ... | ... | |
| 56 | 58 |
|
| 57 | 59 |
vpn_ipsec_configure(); |
| 58 | 60 | |
| 61 |
vpn_ipsec_force_reload(); |
|
| 62 | ||
| 59 | 63 |
unlock($ipseclck); |
| 60 | 64 |
?> |