mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
crash reporter: two issues (one really, undo a fix that did not work)
This commit is contained in:
parent
6d57604516
commit
6fa41b8cae
@ -394,16 +394,13 @@ function filter_generate_scrubing() {
|
||||
}
|
||||
|
||||
/* set up MSS clamping */
|
||||
if (isset($scrubcfg['if'])) {
|
||||
if (
|
||||
$scrubcfg['mss'] != '' && is_numeric($scrubcfg['mss']) &&
|
||||
$scrubcfg['if'] != 'pppoe' && $scrubcfg['if'] != 'pptp' &&
|
||||
$scrubcfg['if'] != 'l2tp'
|
||||
) {
|
||||
$mssclamp = "max-mss " . (intval($scrubcfg['mss'] - 40));
|
||||
} else {
|
||||
$mssclamp = '';
|
||||
}
|
||||
$mssclamp = '';
|
||||
if (
|
||||
$scrubcfg['mss'] != '' && is_numeric($scrubcfg['mss']) &&
|
||||
$scrubcfg['if'] != 'pppoe' && $scrubcfg['if'] != 'pptp' &&
|
||||
$scrubcfg['if'] != 'l2tp'
|
||||
) {
|
||||
$mssclamp = "max-mss " . (intval($scrubcfg['mss'] - 40));
|
||||
}
|
||||
|
||||
/* configure no-df for linux nfs and others */
|
||||
|
||||
@ -351,7 +351,7 @@ function setup_serial_port($when = 'save', $path = '')
|
||||
/* serial console - write out /boot/loader.conf */
|
||||
if ($when == "upgrade")
|
||||
system("echo \"Reading {$loader_conf_file}...\" >> /conf/upgrade_log.txt");
|
||||
$boot_config = file_get_contents($loader_conf_file);
|
||||
$boot_config = @file_get_contents($loader_conf_file);
|
||||
$boot_config_split = explode("\n", $boot_config);
|
||||
if(count($boot_config_split) > 0) {
|
||||
$new_boot_config = array();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user