1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-09-23 19:59:21 +03:00

Avoid using hardcoded paths in log file enumeration

Hardcoded paths are used in log file enumeration such as LogFileList
command or GenerateEraseFileList function to delete old log files when
disk free space is lacking.

Fixes: SoftEtherVPN/SoftEtherVPN#972
This commit is contained in:
Koichiro IWAO
2019-09-13 09:51:20 +09:00
parent 9e46402e6b
commit 21e3ce104b
3 changed files with 25 additions and 20 deletions

View File

@ -14,11 +14,11 @@ static char *delete_targets[] =
"backup.vpn_server.config",
"backup.vpn_gate_svc.config",
"backup.etherlogger.config",
"packet_log",
"etherlogger_log",
HUB_PACKET_LOG_DIR,
EL_PACKET_LOG_DIR,
"secure_nat_log",
"security_log",
"server_log",
HUB_SECURITY_LOG_DIR,
SERVER_LOG_DIR,
"bridge_log",
"packet_log_archive",
"azure_log",