From e4c70781b3cc00c0498a66c65a9902d6fc859306 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Tue, 7 May 2002 23:41:36 +0000 Subject: [PATCH] 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 --- modules/generators/mod_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/generators/mod_info.c b/modules/generators/mod_info.c index 9cc793cef9..3623155f72 100644 --- a/modules/generators/mod_info.c +++ b/modules/generators/mod_info.c @@ -391,7 +391,7 @@ static int display_info(request_rec *r) MODULE_MAGIC_NUMBER_MAJOR, MODULE_MAGIC_NUMBER_MINOR); ap_rprintf(r, "
Hostname/port: " "%s:%u
\n", - serv->server_hostname, serv->port); + ap_get_server_name(r), ap_get_server_port(r)); ap_rprintf(r, "
Timeouts: " "connection: %d    " "keep-alive: %d
", -- 2.40.0