summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-05-24 22:59:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-05-24 22:59:49 +0000
commit03aebc4c5075dfbb1537f9a78f8fe54c21e97082 (patch)
tree80f7a637e24e4a98b20e97980c7e3e4e45d1b3ff /etc/inc/interfaces.inc
parentd5d00b834f97c9f8f38bcfc3589fcc4849e5718a (diff)
downloadpfsense-03aebc4c5075dfbb1537f9a78f8fe54c21e97082.zip
pfsense-03aebc4c5075dfbb1537f9a78f8fe54c21e97082.tar.gz
Update for CarpDEV-DHCP support.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 588ed25..9e85efd 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1695,6 +1695,10 @@ function get_current_wan_address($interface = "wan") {
$wancfg = $config['interfaces'][$interface];
$interface = filter_translate_type_to_real_interface($interface);
+
+ if($wancfg['ipaddr'] == "carpdev-dhcp")
+ return "\${$interface}";
+
$ifinfo = "";
if(in_array($wancfg['ipaddr'], array('dhcp'))) {
/* get interface info with netstat */
OpenPOWER on IntegriCloud