Mercurial > hg > nginx
comparison src/core/ngx_core.h @ 5605:3a72b1805c52
Added server-side support for PROXY protocol v1 (ticket #355).
Client address specified in the PROXY protocol header is now
saved in the $proxy_protocol_addr variable and can be used in
the realip module.
This is currently not implemented for mail.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 17 Mar 2014 17:41:24 +0400 |
parents | 65b895cd0dfa |
children | bc98b0f11bdd |
comparison
equal
deleted
inserted
replaced
5604:22d485944c20 | 5605:3a72b1805c52 |
---|---|
75 #include <ngx_process_cycle.h> | 75 #include <ngx_process_cycle.h> |
76 #include <ngx_conf_file.h> | 76 #include <ngx_conf_file.h> |
77 #include <ngx_open_file_cache.h> | 77 #include <ngx_open_file_cache.h> |
78 #include <ngx_os.h> | 78 #include <ngx_os.h> |
79 #include <ngx_connection.h> | 79 #include <ngx_connection.h> |
80 #include <ngx_proxy_protocol.h> | |
80 | 81 |
81 | 82 |
82 #define LF (u_char) 10 | 83 #define LF (u_char) 10 |
83 #define CR (u_char) 13 | 84 #define CR (u_char) 13 |
84 #define CRLF "\x0d\x0a" | 85 #define CRLF "\x0d\x0a" |