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 2014/08/27 23:01:30 UTC
[1/2] git commit: TS-3020 Blind Tunnel fake request URL is IPv4 only.
Repository: trafficserver
Updated Branches:
refs/heads/master 27e6c04a9 -> cd0715a38
TS-3020 Blind Tunnel fake request URL is IPv4 only.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/9e709989
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/9e709989
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/9e709989
Branch: refs/heads/master
Commit: 9e70998949c887b6699f314bc3376e7a33515926
Parents: 27e6c04
Author: Patrick McGleenon <Pa...@openwave.com>
Authored: Wed Aug 27 14:59:14 2014 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Wed Aug 27 15:00:25 2014 -0600
----------------------------------------------------------------------
proxy/http/HttpTransact.cc | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9e709989/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index b41f4c1..2c6f81a 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -613,10 +613,9 @@ HttpTransact::HandleBlindTunnel(State* s)
HTTPVersion ver(0, 9);
s->hdr_info.client_request.version_set(ver);
- struct in_addr dest_addr;
- dest_addr.s_addr = s->state_machine->ua_session->get_netvc()->get_local_ip();
+ char new_host[INET6_ADDRSTRLEN];
+ ats_ip_ntop(s->state_machine->ua_session->get_netvc()->get_local_addr(), new_host, sizeof(new_host));
- char *new_host = inet_ntoa(dest_addr);
s->hdr_info.client_request.url_get()->host_set(new_host, strlen(new_host));
s->hdr_info.client_request.url_get()->port_set(s->state_machine->ua_session->get_netvc()->get_local_port());
[2/2] git commit: Added TS-3020 to CHANGES.
Posted by zw...@apache.org.
Added TS-3020 to CHANGES.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/cd0715a3
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/cd0715a3
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/cd0715a3
Branch: refs/heads/master
Commit: cd0715a381b3db804272fe358c684b581bf000d1
Parents: 9e70998
Author: Leif Hedstrom <zw...@apache.org>
Authored: Wed Aug 27 15:00:37 2014 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Wed Aug 27 15:00:37 2014 -0600
----------------------------------------------------------------------
CHANGES | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/cd0715a3/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 3cefb45..6dbdd24 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache Traffic Server 5.2.0
+ *) [TS-3020] Blind Tunnel fake request URL is IPv4 only.
+ Author: Patrick McGleenon <Pa...@openwave.com>
+
*) [TS-2561] Remove example/app-template, it's no longer supported.
*) [TS-3048]: Remove hard coded directory in TSPluginDirGet() regression.