diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-12-21 15:42:05 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-12-21 15:42:05 +0100 |
commit | 2290a686fa73b64c96d71d2ef8fcea508bc7a44f (patch) | |
tree | 644abaa3f62218293ce92bb15ae6417b7ff68698 /etc/inc/gwlb.inc | |
parent | 9a21b5470f7e1e8ff1f47d72e780726598fedb5a (diff) | |
download | pfsense-2290a686fa73b64c96d71d2ef8fcea508bc7a44f.zip pfsense-2290a686fa73b64c96d71d2ef8fcea508bc7a44f.tar.gz |
Make sure to use the correct dummy IP address for the monitor for dynamic interfaces
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index fbc3145..94ce050 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -455,7 +455,12 @@ function lookup_gateway_monitor_ip_by_name($name) { global $config; $gateways_arr = return_gateways_array(); + $i = 2; foreach($gateways_arr as $gateway) { + if($gateway['gateway'] == "dynamic") { + $gateway['monitor'] = "127.0.0.{$i}"; + $i++; + } if($gateway['name'] == "$name") { $monitorip = $gateway['monitor']; if($monitorip == "") |