Mercurial > hg > nginx
comparison src/core/ngx_proxy_protocol.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 | |
children | fa663739e115 |
comparison
equal
deleted
inserted
replaced
5604:22d485944c20 | 5605:3a72b1805c52 |
---|---|
1 | |
2 /* | |
3 * Copyright (C) Roman Arutyunyan | |
4 * Copyright (C) Nginx, Inc. | |
5 */ | |
6 | |
7 | |
8 #ifndef _NGX_PROXY_PROTOCOL_H_INCLUDED_ | |
9 #define _NGX_PROXY_PROTOCOL_H_INCLUDED_ | |
10 | |
11 | |
12 #include <ngx_config.h> | |
13 #include <ngx_core.h> | |
14 | |
15 | |
16 #define NGX_PROXY_PROTOCOL_MAX_HEADER 107 | |
17 | |
18 | |
19 u_char *ngx_proxy_protocol_parse(ngx_connection_t *c, u_char *buf, | |
20 u_char *last); | |
21 | |
22 | |
23 #endif /* _NGX_PROXY_PROTOCOL_H_INCLUDED_ */ |