diff options
author | Ermal <eri@pfsense.org> | 2010-09-01 15:51:38 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-01 15:51:38 +0000 |
commit | e847108459441367a88a6e8185165f2e33690d67 (patch) | |
tree | f6fef1f6cd75052641248cef39dbfa069203147a /etc | |
parent | 8e0c376055498bf0a43ff2114062cd8ef8992a09 (diff) | |
download | pfsense-e847108459441367a88a6e8185165f2e33690d67.zip pfsense-e847108459441367a88a6e8185165f2e33690d67.tar.gz |
Ticket #866 #632. Save old settings or actions to be taken for reconfiguring a route/vip on a tmp file and make use that information when apply settings buttons is clicked. This makes the gui behave as expected.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index e4389d4..2577d22 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3120,19 +3120,21 @@ function ip_in_interface_alias_subnet($interface, $ipalias) { global $config; if (empty($interface) || !is_ipaddr($ipalias)) - return 0; + return false; if (is_array($config['virtualip']['vip'])) { foreach ($config['virtualip']['vip'] as $vip) { switch ($vip['mode']) { case "ipalias": if ($vip['interface'] <> $interface) - continue; + break; if (ip_in_subnet($ipalias, gen_subnet($vip['subnet'], $vip['subnet_bits']) . "/" . $vip['subnet_bits'])) - return 1; + return true; break; } } } + + return false; } function get_interface_ip($interface = "wan") |