You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Alan M. Carroll (JIRA)" <ji...@apache.org> on 2016/10/25 13:47:58 UTC

[jira] [Commented] (TS-4640) Create ts_is_localhost() in lib/ts to unify "localhost" comparisons

    [ https://issues.apache.org/jira/browse/TS-4640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15605363#comment-15605363 ] 

Alan M. Carroll commented on TS-4640:
-------------------------------------

If it is an address, it should use the existing {{ats_is_ip_loopback}} which works for both IPv4 and IPv6. I suppose we could overload that with {{const char*}} and {{std::string const&}} to do the name / string comparisons.

> Create ts_is_localhost() in lib/ts to unify "localhost" comparisons
> -------------------------------------------------------------------
>
>                 Key: TS-4640
>                 URL: https://issues.apache.org/jira/browse/TS-4640
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Tyler Stroh
>            Assignee: Alan M. Carroll
>             Fix For: sometime
>
>
> ATS currently has multiple places where a comparison of a host is made to localhost. We should create one function that does it and replace all the various implementations with this function.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)