diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-25 21:30:58 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-25 21:30:58 +0000 |
commit | bd21eae5802a4869da8e4aecd3afa4056137bfd5 (patch) | |
tree | abbffabc89c7291d834a508b3a7849a73c742d11 /etc/inc/filter.inc | |
parent | d8948db43a0ce52e2cb407681f4b101ffd4d7245 (diff) | |
download | pfsense-bd21eae5802a4869da8e4aecd3afa4056137bfd5.zip pfsense-bd21eae5802a4869da8e4aecd3afa4056137bfd5.tar.gz |
Take into account all DHCP type CarpDEV interfaces. With this change
multiple IP addresses can be of the type DHCP on WAN. This is nice because
prior it was impossible to run dhclient on WAN to obtain multiple IP
addresses. This is much cleaner than the previous proposed ethernet
cloning mojo using netgraph.
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r-- | etc/inc/filter.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index f586d99..fec7b49 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -343,8 +343,11 @@ function filter_generate_aliases() { $counter = 0; foreach ($viparr as $vip) { if ($vip['mode'] == "carpdev-dhcp") { - if($vip['interface'] == "wan") - $wanif = "carp{$counter}"; + if($vip['interface'] == "wan") { + if($counter == 0) + $wanif = ""; + $wanif .= " carp{$counter}"; + } $counter++; } } |