Commit e4c70781 authored by Bradley Nicholes's avatar Bradley Nicholes
Browse files

Use the ap_get_server_xxx() calls to return the info rather than short cutting...

Use the ap_get_server_xxx() calls to return the info rather than short cutting it with the server_rec.  This avoids port showing up as 0 and also respects the UseCanonicalName setting in the .conf file.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95006 13f79535-47bb-0310-9956-ffa450edef68
parent 5a8158eb
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/generators/mod_info.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -391,7 +391,7 @@ static int display_info(request_rec *r)
                        MODULE_MAGIC_NUMBER_MAJOR, MODULE_MAGIC_NUMBER_MINOR);
            ap_rprintf(r, "<dt><strong>Hostname/port:</strong> "
                        "<tt>%s:%u</tt></dt>\n",
                        serv->server_hostname, serv->port);
                        ap_get_server_name(r), ap_get_server_port(r));
            ap_rprintf(r, "<dt><strong>Timeouts:</strong> "
                        "<tt>connection: %d &nbsp;&nbsp; "
                        "keep-alive: %d</tt></dt>",