diff options
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 2311ea7..e0de9a2 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -48,6 +48,10 @@ function get_tmp_file() { function find_number_of_needed_carp_interfaces() { global $config, $g; $carp_counter=0; + if(!$config['virtualip']) + return 0; + if(!$config['virtualip']['vip']) + return 0; foreach($config['virtualip']['vip'] as $vip) { if($vip['mode'] == "carp") $carp_counter++; |