summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/system.inc2
-rw-r--r--etc/inc/util.inc5
2 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 45a6260..7afdd0e 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -768,7 +768,7 @@ function system_generate_lighty_config($filename,
$document_root = "/usr/local/www/",
$cert_location = "cert.pem",
$ca_location = "ca.pem",
- $max_procs = 2,
+ $max_procs = 1,
$max_requests = "2",
$fast_cgi_enable = true,
$captive_portal = false) {
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index bcb7845..e99b227 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -592,6 +592,9 @@ function get_configured_interface_list($only_opt = false, $withdisabled = false)
$iflist = array();
+ if(!$is_array['interfaces'])
+ $config = parse_config(true);
+
/* if list */
foreach($config['interfaces'] as $if => $ifdetail) {
if ($only_opt && ($if == "wan" || $if == "lan"))
@@ -1515,4 +1518,4 @@ function array_merge_recursive_unique($array0, $array1) {
return $result;
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud