]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix a bogus check for IPv6 support that led to an unnecessary
authorJeff Trawick <trawick@apache.org>
Tue, 13 May 2003 14:22:45 +0000 (14:22 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 13 May 2003 14:22:45 +0000 (14:22 +0000)
string search on builds of Apache without IPv6 support

Submitted by: Bill Stoddard

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99776 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 5ed2fe1ab5bca87a1d1b6dbbae3e74a5f415dd23..8897d9cf9e996204b4b3d368874a9209e48e2b61 100644 (file)
@@ -894,7 +894,7 @@ static const char *get_server_name_for_url(request_rec *r)
 {
     const char *plain_server_name = ap_get_server_name(r);
 
-#ifdef APR_HAVE_IPV6
+#if APR_HAVE_IPV6
     if (ap_strchr_c(plain_server_name, ':')) { /* IPv6 literal? */
         return apr_psprintf(r->pool, "[%s]", plain_server_name);
     }