mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
VPN: IPsec: Advanced Settings - default log should be set to "basic", should fix weird behaviour and missing logs after save
This commit is contained in:
parent
12363f5f3c
commit
3f39ff8442
@ -49,7 +49,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
if (!empty($config['ipsec']["ipsec_{$lkey}"])) {
|
||||
$pconfig["ipsec_{$lkey}"] = $config['ipsec']["ipsec_{$lkey}"];
|
||||
} else {
|
||||
$pconfig["ipsec_{$lkey}"] = null;
|
||||
$pconfig["ipsec_{$lkey}"] = '0';
|
||||
}
|
||||
}
|
||||
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
@ -219,7 +219,7 @@ if (isset($input_errors) && count($input_errors) > 0) {
|
||||
<?= $ldescr ?>
|
||||
<select name="ipsec_<?=$lkey?>" id="ipsec_<?=$lkey?>">
|
||||
<?php foreach (IPSEC_LOG_LEVELS as $lidx => $lvalue): ?>
|
||||
<option value="<?=$lidx?>" <?= (isset($pconfig["ipsec_{$lkey}"]) && $pconfig["ipsec_{$lkey}"] == $lidx) || (!isset($pconfig["ipsec_{$lkey}"]) && $lidx == "0") ? 'selected="selected"' : '' ?>>
|
||||
<option value="<?=$lidx?>" <?=$pconfig["ipsec_{$lkey}"] == $lidx ? 'selected="selected"' : '' ?>>
|
||||
<?=$lvalue?>
|
||||
</option>
|
||||
<?php endforeach ?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user