From 7922db8a40a166c8c57bdfe13769e942056de934 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Tue, 11 Nov 2008 22:01:30 +0000 Subject: Correct the broken multiwan check. It now works properly with dynamic gateways too. Things to do, add static routes, input validation that no gateways are assigned to dns servers on a directly connected subnet. --- usr/local/www/system.php | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) (limited to 'usr/local/www/system.php') diff --git a/usr/local/www/system.php b/usr/local/www/system.php index d48c05d..ac8a592 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -84,11 +84,12 @@ $timezonelist = array_filter($timezonelist, 'is_timezone'); sort($timezonelist); $multiwan = false; -foreach($config['interfaces'] as $int) - if($int['gateway']) +$interfaces = get_configured_interface_list(); +foreach($interfaces as $interface) { + if(interface_has_gateway($interface)) { $multiwan = true; - -$ints = get_interface_list(); + } +} if ($_POST) { @@ -257,23 +258,31 @@ include("head.inc"); - - -- cgit v1.1