aboutsummaryrefslogtreecommitdiffstats
path: root/packages/routed.inc
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2006-09-01 00:17:49 +0000
committerBill Marquette <billm@pfsense.org>2006-09-01 00:17:49 +0000
commit54536192772692b59bfa2444fab02121bfb2b780 (patch)
treee7484e09d45223f087fed6f79ae774ff22783b38 /packages/routed.inc
parentc9edfb4a766940b852f5b3c4e9cec1c67b0af061 (diff)
downloadpfsense-packages-54536192772692b59bfa2444fab02121bfb2b780.tar.gz
pfsense-packages-54536192772692b59bfa2444fab02121bfb2b780.tar.bz2
pfsense-packages-54536192772692b59bfa2444fab02121bfb2b780.zip
interface_array is an array type in xmlparse.inc, we need to use iface_array
and build our own array from the results
Diffstat (limited to 'packages/routed.inc')
-rw-r--r--packages/routed.inc6
1 files changed, 3 insertions, 3 deletions
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") {