You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2018/05/09 10:30:56 UTC
[trafficserver] 06/06: Corrects marshaling of source ip and port
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit efc6e1d6bda6620e47456b14be263aeec95e553d
Author: Derek Dagit <de...@oath.com>
AuthorDate: Mon Apr 30 18:06:39 2018 -0500
Corrects marshaling of source ip and port
(cherry picked from commit 01201739e252f84e7c8a7c62c0ee31feb0def616)
---
proxy/logging/LogAccessHttp.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxy/logging/LogAccessHttp.cc b/proxy/logging/LogAccessHttp.cc
index bb7381a..404f65b 100644
--- a/proxy/logging/LogAccessHttp.cc
+++ b/proxy/logging/LogAccessHttp.cc
@@ -1058,14 +1058,14 @@ LogAccessHttp::marshal_proxy_req_server_name(char *buf)
int
LogAccessHttp::marshal_proxy_req_server_ip(char *buf)
{
- return marshal_ip(buf, m_http_sm->t_state.current.server != nullptr ? &m_http_sm->t_state.current.server->dst_addr.sa : nullptr);
+ return marshal_ip(buf, m_http_sm->t_state.current.server != nullptr ? &m_http_sm->t_state.current.server->src_addr.sa : nullptr);
}
int
LogAccessHttp::marshal_proxy_req_server_port(char *buf)
{
if (buf) {
- uint16_t port = ntohs(m_http_sm->t_state.current.server != nullptr ? m_http_sm->t_state.current.server->dst_addr.port() : 0);
+ uint16_t port = ntohs(m_http_sm->t_state.current.server != nullptr ? m_http_sm->t_state.current.server->src_addr.port() : 0);
marshal_int(buf, port);
}
return INK_MIN_ALIGN;
--
To stop receiving notification emails like this one, please contact
zwoop@apache.org.