mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix #4099:
- When interface is 'lo0', strpos returns 0, that is erroneously considered false (boolean) on the test. Be more strict on strpos return to avoid skiping lo0 ip aliases during sync.
This commit is contained in:
parent
986fd3d9a7
commit
11bdc638ef
@ -55,7 +55,9 @@ function backup_vip_config_section() {
|
||||
$temp = array();
|
||||
$temp['vip'] = array();
|
||||
foreach($config['virtualip']['vip'] as $section) {
|
||||
if (($section['mode'] == 'proxyarp' || $section['mode'] == 'ipalias') && !(strpos($section['interface'], '_vip') || strpos($section['interface'], 'lo0')))
|
||||
if (($section['mode'] == 'proxyarp' || $section['mode'] == 'ipalias') &&
|
||||
(strpos($section['interface'], '_vip') === FALSE) &&
|
||||
(strpos($section['interface'], 'lo0') === FALSE))
|
||||
continue;
|
||||
if ($section['advskew'] <> "") {
|
||||
$section_val = intval($section['advskew']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user