aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-collector.cgi
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-01-24 07:44:16 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-01-24 07:44:16 +0000
commit5433ddd32ba2c67e5b42067be4e04e35c3280873 (patch)
tree0cee35bc5f30079e3828bae3f40cc566a822d52b /sitesummary-collector.cgi
parentd7aebe0b5a27e070cd7e68c9b330e835d93b0268 (diff)
downloadsitesummary-5433ddd32ba2c67e5b42067be4e04e35c3280873.tar.gz
sitesummary-5433ddd32ba2c67e5b42067be4e04e35c3280873.tar.bz2
sitesummary-5433ddd32ba2c67e5b42067be4e04e35c3280873.tar.xz
Ignore entries from hosts without /proc/ mounted.
Diffstat (limited to 'sitesummary-collector.cgi')
-rw-r--r--sitesummary-collector.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/sitesummary-collector.cgi b/sitesummary-collector.cgi
index 7d10de0..06acf4c 100644
--- a/sitesummary-collector.cgi
+++ b/sitesummary-collector.cgi
@@ -126,6 +126,12 @@ sub process_entry {
close(PEERINFO) || die;
my $id = extract_unique_id($dirname);
+ if ("ether-unknown" eq $id) {
+ syslog('warning', "%s", "ignoring client without MAC address connected from \[$peeripaddr\]");
+ chdir "..";
+ `rm -r $dirname`;
+ return;
+ }
my $newdir = "$basedir/entries/$id";
my $status = "new";