You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fa...@apache.org on 2001/02/01 11:06:40 UTC

cvs commit: apache-1.3/src/main util.c

fanf        01/02/01 02:06:39

  Modified:    src      CHANGES
               src/main util.c
  Log:
  Get the correct IP address if ServerName isn't set and we can't
  find a fully-qualified domain name at startup.
  PR:             7170
  Submitted by:   Danek Duvall <dd...@eng.sun.com>
  
  Revision  Changes    Path
  1.1634    +4 -0      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.1633
  retrieving revision 1.1634
  diff -u -u -r1.1633 -r1.1634
  --- CHANGES	2001/02/01 06:11:02	1.1633
  +++ CHANGES	2001/02/01 10:06:31	1.1634
  @@ -1,5 +1,9 @@
   Changes with Apache 1.3.18
   
  +  *) Get the correct IP address if ServerName isn't set and we can't
  +     find a fully-qualified domain name at startup.
  +     PR#7170 [Danek Duvall <dd...@eng.sun.com>]
  +
     *) Fix pointer arithmetic in mod_rewrite map expansion.
        [Christopher A. Bongaarts <ca...@tc.umn.edu>] PR#7157, 7158
   
  
  
  
  1.194     +1 -1      apache-1.3/src/main/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/util.c,v
  retrieving revision 1.193
  retrieving revision 1.194
  diff -u -u -r1.193 -r1.194
  --- util.c	2001/01/15 17:05:05	1.193
  +++ util.c	2001/02/01 10:06:37	1.194
  @@ -2048,7 +2048,7 @@
           if ((!(p = gethostbyname(str))) 
               || (!(server_hostname = find_fqdn(a, p)))) {
               /* Recovery - return the default servername by IP: */
  -            if (!str && p->h_addr_list[0]) {
  +            if (p->h_addr_list[0]) {
                   ap_snprintf(str, sizeof(str), "%pA", p->h_addr_list[0]);
   	        server_hostname = ap_pstrdup(a, str);
                   /* We will drop through to report the IP-named server */
  
  
  

Re: cvs commit: apache-1.3/src/main util.c

Posted by Martin Kraemer <Ma...@Fujitsu-Siemens.com>.
On Thu, Feb 01, 2001 at 10:06:40AM -0000, fanf@apache.org wrote:
> fanf        01/02/01 02:06:39
> 
>   Modified:    src      CHANGES
>                src/main util.c
>   Log:
>   Get the correct IP address if ServerName isn't set and we can't
>   find a fully-qualified domain name at startup.

Oh, finally! That's great, as I always had to tell people who were
using Apache on  non-DNS-resolvable machines to use their IP address.

Thanks!

  Martin
-- 
<Ma...@Fujitsu-Siemens.com>    |       Fujitsu Siemens
       <ma...@apache.org>              |   81730  Munich,  Germany