server: proxy: stop loading session captures config if it is disabled
This commit is contained in:
parent
9e32899347
commit
160446e093
@ -215,6 +215,9 @@ static BOOL pf_config_load_captures(wIniFile* ini, proxyConfig* config)
|
|||||||
const char* captures_dir;
|
const char* captures_dir;
|
||||||
|
|
||||||
config->SessionCapture = pf_config_get_bool(ini, "SessionCapture", "Enabled");
|
config->SessionCapture = pf_config_get_bool(ini, "SessionCapture", "Enabled");
|
||||||
|
if (!config->SessionCapture)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
captures_dir = pf_config_get_str(ini, "SessionCapture", "CapturesDirectory");
|
captures_dir = pf_config_get_str(ini, "SessionCapture", "CapturesDirectory");
|
||||||
|
|
||||||
if (!captures_dir)
|
if (!captures_dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user