From 54536192772692b59bfa2444fab02121bfb2b780 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Fri, 1 Sep 2006 00:17:49 +0000 Subject: interface_array is an array type in xmlparse.inc, we need to use iface_array and build our own array from the results --- packages/routed.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/routed.inc') diff --git a/packages/routed.inc b/packages/routed.inc index 92cd5701..b3f4e8cd 100644 --- a/packages/routed.inc +++ b/packages/routed.inc @@ -35,8 +35,8 @@ function setup_routed() { if (isset($config['installedpackages']['routed']['config'][0]['enable']) && $config['installedpackages']['routed']['config'][0]['enable'] == "on") { /* if user selected individual interfaces */ - if (is_array($config['installedpackages']['routed']['config'][0]['interface_array'])) { - $ifarr = $config['installedpackages']['routed']['config'][0]['interface_array']; + $ifarr = explode(",", $config['installedpackages']['routed']['config'][0]['iface_array']); + if(count($ifarr) != 0) { foreach($ifarr as $iface) { $gw .= setup_etc_gateways($iface); } @@ -57,7 +57,7 @@ function setup_etc_gateways($iface="") { global $config; if (isset($iface)) { - $realif= convert_friendly_interface_to_real_interface_name($iface); + $realif=convert_friendly_interface_to_real_interface_name(strtoupper($iface)); $ret = "if={$realif} "; } if ($config['installedpackages']['routed']['config'][0]['ripversion'] == "2") { -- cgit v1.2.3