changed: config parameters: log_check_proxy_ip_header -> check_proxy_ip_header and log_proxy_ip_header -> proxy_ip_header

added: Request::ip_str (std::wstring) (string of the client's IP address)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1105 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2018-05-01 11:22:55 +00:00
parent ba7d55b7c1
commit 3f29cdc01e
8 changed files with 61 additions and 26 deletions

View File

@@ -122,15 +122,6 @@ public:
// default: false
bool log_plugin_call;
// check whether there is a 'log_proxy_ip_header' header
// and if so then log the IP address from it
// default: false
bool log_check_proxy_ip_header;
// proxy header representing the real IP address of a client
// default: X-Real-IP
std::wstring log_proxy_ip_header;
// how many characters in values should be logged from POST parameters
// default: 80
@@ -766,6 +757,17 @@ public:
bool allow_ezc_out_in_executable_items;
// check whether there is a 'log_proxy_ip_header' header
// and if so then log the IP address from it
// default: false
bool check_proxy_ip_header;
// proxy header representing the real IP address of a client
// default: X_Real_IP
std::wstring proxy_ip_header;
Config();
bool ReadConfig(bool errors_to_stdout_, bool stdout_is_closed = true);