When overriding the useragent address from X-Forwarded-For,
zero out what had been initialized as the connection-level port.
Submitted By: Hank Ibell <hwibell gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1776458 13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) mod_remoteip: When overriding the useragent address from X-Forwarded-For,
+ zero out what had been initialized as the connection-level port. PR59931.
+ [Hank Ibell <hwibell gmail.com>]
+
*) mod_proxy_wstunnel: Reliably run before mod_proxy_http.
[Eric Covener]
return OK;
}
+ /* Port is not known so set it to zero; otherwise it can be misleading */
+ req->useragent_addr->port = 0;
+
req->proxied_remote = remote;
req->proxy_ips = proxy_ips;