Loading server/util.c +4 −0 Original line number Diff line number Diff line Loading @@ -1798,7 +1798,11 @@ char *ap_get_local_host(apr_pool_t *a) if ((!(p = gethostbyname(str))) || (!(server_hostname = find_fqdn(a, p)))) { /* Recovery - return the default servername by IP: */ #ifndef BEOS if (p->h_addr_list[0]) { #else if (p) { #endif apr_snprintf(str, sizeof(str), "%pA", p->h_addr_list[0]); server_hostname = apr_pstrdup(a, str); /* We will drop through to report the IP-named server */ Loading Loading
server/util.c +4 −0 Original line number Diff line number Diff line Loading @@ -1798,7 +1798,11 @@ char *ap_get_local_host(apr_pool_t *a) if ((!(p = gethostbyname(str))) || (!(server_hostname = find_fqdn(a, p)))) { /* Recovery - return the default servername by IP: */ #ifndef BEOS if (p->h_addr_list[0]) { #else if (p) { #endif apr_snprintf(str, sizeof(str), "%pA", p->h_addr_list[0]); server_hostname = apr_pstrdup(a, str); /* We will drop through to report the IP-named server */ Loading