Project

General

Profile

Actions

Bug #14990

closed

IPsec log categories set to "Audit" do not function properly or save properly in the GUI

Added by Jim Pingle 6 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
IPsec
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.09.1
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

The internal value of the IPsec log level "Audit" is 0 which is confusing the PHP empty() test in ipsec_get_loglevels(). When changing the value in the GUI it appears to save, and config.xml gets updated properly, but ipsec_get_loglevels() ignores the customized value when reading it back for display in the GUI or when used in strongSwan so it is effectively ignored.

Changing the empty() test to a strlen() style test instead works around the PHP issue.

Actions

Also available in: Atom PDF