summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2008-07-14 15:46:05 +0530
committerMukund Sivaraman <muks@banu.com>2008-07-14 15:46:05 +0530
commit7b9e178a76cb21cb644276eb4e0a08f7514017aa (patch)
treee27634048e249cb2f192c5421fe63854305db8ee /src
parent7f12f71f94fd0f29a00f0e4d2b2cd09247cb0908 (diff)
downloadtinyproxy-7b9e178a76cb21cb644276eb4e0a08f7514017aa.tar.gz
tinyproxy-7b9e178a76cb21cb644276eb4e0a08f7514017aa.zip
Add version info in embedded stats page
Diffstat (limited to '')
-rw-r--r--src/stats.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stats.c b/src/stats.c
index dcbc3b8..558a4c4 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -76,6 +76,8 @@ showstats(struct conn_s *connptr)
"Number of denied connections: %lu<br />\n"
"Number of refused connections due to high load: %lu\n"
"</p>\n"
+ "<hr />\n"
+ "<p><em>Generated by %s version %s.</em></p>\n"
"</body>\n"
"</html>\n";
@@ -99,7 +101,8 @@ showstats(struct conn_s *connptr)
stats->num_open,
stats->num_reqs,
stats->num_badcons, stats->num_denied,
- stats->num_refused);
+ stats->num_refused,
+ PACKAGE, VERSION);
if (send_http_message(connptr, 200, "OK", message_buffer) < 0) {
safefree(message_buffer);