From 3f39ff84426c1a401ca50eb88b79c2d4110fc0ac Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 20 Dec 2022 21:51:21 +0100 Subject: [PATCH] VPN: IPsec: Advanced Settings - default log should be set to "basic", should fix weird behaviour and missing logs after save --- src/www/vpn_ipsec_settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/www/vpn_ipsec_settings.php b/src/www/vpn_ipsec_settings.php index b47590d25..4c0c007e1 100644 --- a/src/www/vpn_ipsec_settings.php +++ b/src/www/vpn_ipsec_settings.php @@ -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) {