tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/ajp/proxy proxy_util.c
Date Wed, 11 Aug 2004 15:34:27 GMT
mturk       2004/08/11 08:34:27

  Modified:    ajp/proxy proxy_util.c
  Log:
  Fix setting of hostname for backend.
  The now reflects the real name withouth scheme:// prefix.
  
  Revision  Changes    Path
  1.27      +3 -1      jakarta-tomcat-connectors/ajp/proxy/proxy_util.c
  
  Index: proxy_util.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/proxy/proxy_util.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- proxy_util.c	11 Aug 2004 10:49:49 -0000	1.26
  +++ proxy_util.c	11 Aug 2004 15:34:26 -0000	1.27
  @@ -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;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message