server: proxy: stop loading session captures config if it is disabled

This commit is contained in:
kubistika 2019-10-27 13:38:31 +02:00 committed by akallabeth
parent 9e32899347
commit 160446e093

View File

@ -215,6 +215,9 @@ static BOOL pf_config_load_captures(wIniFile* ini, proxyConfig* config)
const char* captures_dir;
config->SessionCapture = pf_config_get_bool(ini, "SessionCapture", "Enabled");
if (!config->SessionCapture)
return TRUE;
captures_dir = pf_config_get_str(ini, "SessionCapture", "CapturesDirectory");
if (!captures_dir)