Skip to content

Commit

Permalink
filter vip usage, ipv6 vips cause invalid rules because a empty item …
Browse files Browse the repository at this point in the history
…gets added to the vips list for a interface

(cherry picked from commit c6ebe69)
  • Loading branch information
PiBa-NL authored and jim-p committed Apr 5, 2018
1 parent e3fb3f3 commit fa5df9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/etc/inc/filter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,7 @@ function filter_generate_optcfg_array() {
if (!is_array($oic['vips'])) {
$oic['vips'] = array();
}
$oic['vips'][$vipidx]['mode'] = $vip['mode'];
$oic['vips'][$vipidx]['ip'] = $vip['subnet'];
if (empty($vip['subnet_bits'])) {
$oic['vips'][$vipidx]['sn'] = 32;
Expand All @@ -1170,6 +1171,7 @@ function filter_generate_optcfg_array() {
if (!is_array($oic['vips6'])) {
$oic['vips6'] = array();
}
$oic['vips6'][$vipidx]['mode'] = $vip['mode'];
$oic['vips6'][$vipidx]['ip'] = $vip['subnet'];
if (empty($vip['subnet_bits'])) {
$oic['vips6'][$vipidx]['sn'] = 128;
Expand Down

0 comments on commit fa5df9e

Please sign in to comment.