Project

General

Profile

« Previous | Next » 

Revision e56a7306

Added by Ermal LUÇI about 14 years ago

Blacklist lan as being used as default gateway when auto switching is on. This prevents some problems in general functionality with services.

View differences:

etc/inc/gwlb.inc
394 394
					$dfltgwdown = true;
395 395
			}
396 396
			/* Keep a record of the last up gateway */
397
			if (empty($upgw) && (isset($gwsttng['monitor_disable']) || !stristr($gateways_status[$gwname]['status'], "down")))
397
			/* XXX: Blacklist lan for now since it might cause issues to those who have a gateway set for it */
398
			if (empty($upgw) && (isset($gwsttng['monitor_disable']) || !stristr($gateways_status[$gwname]['status'], "down")) && $gateways_status[$gwname]['friendlyiface'] != "lan")
398 399
				$upgw = $gwname;
399 400
			if ($dfltgwdown == true && !empty($upgw))
400 401
				break;

Also available in: Unified diff