TS-2742: TSFetchCreate should accept both IPv4 and IPv6

Reported by Sudheer Vinukonda<[email protected]>, thanks.

Signed-off-by: Yunkai Zhang <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/8c0cafca
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/8c0cafca
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/8c0cafca

Branch: refs/heads/master
Commit: 8c0cafca385653df5e331a7aa4ccb96ad31188b0
Parents: 9b72a7d
Author: Yunkai Zhang <[email protected]>
Authored: Sun Apr 27 13:33:37 2014 +0800
Committer: Yunkai Zhang <[email protected]>
Committed: Sun Apr 27 14:04:17 2014 +0800

----------------------------------------------------------------------
 CHANGES         | 2 ++
 proxy/InkAPI.cc | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8c0cafca/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 31d869e..d54ff6d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 5.0.0
 
+  *) [TS-2742] TSFetchCreate should accept both IPv4 and IPv6.
+
   *) [TS-2736] Add config option to set the max open files limit for the 
traffic_server
     process to some percentage of the fs.file-max proc value on Linux. The 
default is 90%.
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8c0cafca/proxy/InkAPI.cc
----------------------------------------------------------------------
diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc
index c9eaf89..a8a410b 100644
--- a/proxy/InkAPI.cc
+++ b/proxy/InkAPI.cc
@@ -7292,7 +7292,7 @@ TSFetchCreate(TSCont contp, TSFetchMethod method,
               struct sockaddr const* client_addr, int flags)
 {
   sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS);
-  sdk_assert(ats_is_ip4(client_addr));
+  sdk_assert(ats_is_ip(client_addr));
 
   FetchSM *fetch_sm = FetchSMAllocator.alloc();
 

Reply via email to