httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_util.c
Date Wed, 11 Aug 2004 23:30:54 GMT
wrowe       2004/08/11 16:30:54

  Modified:    modules/proxy proxy_util.c
  Log:
  Fix setting of hostname for backend.
  The now reflects the real name withouth scheme:// prefix.
  
  Submitted by: mturk
  
  Revision  Changes    Path
  1.134     +3 -1      httpd-2.0/modules/proxy/proxy_util.c
  
  Index: proxy_util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_util.c,v
  retrieving revision 1.133
  retrieving revision 1.134
  diff -u -r1.133 -r1.134
  --- proxy_util.c	11 Aug 2004 23:10:35 -0000	1.133
  +++ proxy_util.c	11 Aug 2004 23:30:54 -0000	1.134
  @@ -1129,9 +1129,11 @@
       ap_str_tolower(uri);
       *worker = apr_array_push(conf->workers);
       memset(*worker, 0, sizeof(proxy_worker));
  -    (*worker)->name = (*worker)->hostname = apr_pstrdup(p, uri);
  +    (*worker)->name = apr_pstrdup(p, uri);
       *c = '\0';
       (*worker)->scheme = uri;
  +    (*worker)->hostname = c + 3;
  +
       if (port == -1)
           port = apr_uri_port_of_scheme((*worker)->scheme);
       (*worker)->port = port;
  
  
  

Mime
View raw message