Project

General

Profile

« Previous | Next » 

Revision e0df9716

Added by Marcus Brown over 14 years ago

cbuechler says monitorip should not be stored in <interfaces><$if>. See ticket #919

View differences:

etc/inc/gwlb.inc
339 339
			}
340 340
		}
341 341

  
342
		/* retrieve a proper monitor IP? */
343
		$ifcfg =& $config['interfaces'][$ifname];
344
		if (is_ipaddr($ifcfg['monitorip']))
345
			$gateway['monitor'] = $ifcfg['monitorip'];
346
		else
342
		if (is_ipaddr($gateway['gateway']))
347 343
			$gateway['monitor'] = $gateway['gateway'];
348 344

  
349 345
		$gateway['descr'] = "Interface {$friendly} Dynamic Gateway";

Also available in: Unified diff