mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add else clause for cases when OpenVPN interface file does not exist.
- Prevents potential race condition at startup resulting in failure to start OpenVPN instances. - In cases where interface file is not present the openvpn_resync function handles a restart correctly.
This commit is contained in:
parent
c46d0b12d6
commit
614ca41e09
@ -1584,6 +1584,8 @@ function openvpn_resync_all($interface = "") {
|
||||
if (trim(file_get_contents($fpath), " \t\n") != get_failover_interface($settings['interface'])) {
|
||||
openvpn_resync('server', $settings);
|
||||
}
|
||||
} else {
|
||||
openvpn_resync('server', $settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1595,6 +1597,8 @@ function openvpn_resync_all($interface = "") {
|
||||
if (trim(file_get_contents($fpath), " \t\n") != get_failover_interface($settings['interface'])) {
|
||||
openvpn_resync('client', $settings);
|
||||
}
|
||||
} else {
|
||||
openvpn_resync('client', $settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user