--------------------- PatchSet 5385 Date: 2007/08/19 12:58:16 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Let getMyHostname return a partial-FQDN if it rDNS resolves. - was returning failure if not FQDN and rDNS both. Members: src/tools.cc:1.22.2.26->1.22.2.27 Index: squid3/src/tools.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/tools.cc,v retrieving revision 1.22.2.26 retrieving revision 1.22.2.27 diff -u -r1.22.2.26 -r1.22.2.27 --- squid3/src/tools.cc 19 Aug 2007 12:45:56 -0000 1.22.2.26 +++ squid3/src/tools.cc 19 Aug 2007 12:58:16 -0000 1.22.2.27 @@ -1,6 +1,6 @@ /* - * $Id: tools.cc,v 1.22.2.26 2007/08/19 12:45:56 amosjeffries Exp $ + * $Id: tools.cc,v 1.22.2.27 2007/08/19 12:58:16 amosjeffries Exp $ * * DEBUG: section 21 Misc Functions * AUTHOR: Harvest Derived @@ -651,8 +651,7 @@ AI = NULL; } - if (strchr(host, '.')) - return host; + return host; } if(AI) xfreeaddrinfo(AI);