aboutsummaryrefslogtreecommitdiffstats
path: root/packages/routed.inc
diff options
context:
space:
mode:
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") {