comparison src/mail/ngx_mail_handler.c @ 7795:ef4bdbbce57e

Mail: realip module. When configured with the "set_real_ip_from", it can set client's IP address as visible in logs to the one obtained via the PROXY protocol.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 05 Mar 2021 17:16:29 +0300
parents 12ea1de7d87c
children 777373b5a169
comparison
equal deleted inserted replaced
7794:12ea1de7d87c 7795:ef4bdbbce57e
258 if (c->recv(c, buf, size) != (ssize_t) size) { 258 if (c->recv(c, buf, size) != (ssize_t) size) {
259 ngx_mail_close_connection(c); 259 ngx_mail_close_connection(c);
260 return; 260 return;
261 } 261 }
262 262
263 if (ngx_mail_realip_handler(s) != NGX_OK) {
264 ngx_mail_close_connection(c);
265 return;
266 }
267
263 ngx_mail_init_session_handler(rev); 268 ngx_mail_init_session_handler(rev);
264 } 269 }
265 270
266 271
267 static void 272 static void