aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog9
-rw-r--r--sitesummary-collector.cgi1
2 files changed, 9 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 0ac28fb..a0b2cc7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,15 @@
sitesummary (0.0.35) UNRELEASED; urgency=low
+ [ Petter Reinholdtsen ]
* Recognice nagios2 as a nagios client/server indicator.
- -- Petter Reinholdtsen <pere@debian.org> Mon, 3 Dec 2007 10:28:51 +0100
+ [ Daniel Hess ]
+ * Make get_peerinfo of sitesummary-collector.cgi return the
+ dotted decimal representation of the remote IP address even
+ with webservers that don't set REMOTE_ADDR but passes the
+ filedescriptor of the TCP socket.
+
+ -- Daniel Hess <daniel@rio-grande.ping.de> Mon, 03 Dec 2007 21:11:34 +0100
sitesummary (0.0.34) unstable; urgency=low
diff --git a/sitesummary-collector.cgi b/sitesummary-collector.cgi
index 1ba4607..226e7ad 100644
--- a/sitesummary-collector.cgi
+++ b/sitesummary-collector.cgi
@@ -154,6 +154,7 @@ sub get_peerinfo {
my $peerport;
($peerport, $peeripaddr) = sockaddr_in($sockaddr);
$peername = gethostbyaddr($peeripaddr, AF_INET);
+ $peeripstr = inet_ntoa($peeripaddr);
} else {
# Running on the command line, use test host
$peeripstr = "127.0.0.1";