summaryrefslogtreecommitdiffstats
path: root/pacredir.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-11-14 22:30:13 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-11-14 22:30:13 +0100
commitf93686fed4b3e1f45452dedff0c4f75108a639ac (patch)
tree76b485e991cacc8f02cc2729a9e18a7d3db37e9a /pacredir.h
parent2363f05e54da345d21e4e784da61e88f650a4eed (diff)
downloadpacredir-f93686fed4b3e1f45452dedff0c4f75108a639ac.tar.gz
pacredir-f93686fed4b3e1f45452dedff0c4f75108a639ac.tar.zst
count bad requests and increase ignore time after request
Diffstat (limited to 'pacredir.h')
-rw-r--r--pacredir.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/pacredir.h b/pacredir.h
index f5107ec..5f3fbb9 100644
--- a/pacredir.h
+++ b/pacredir.h
@@ -14,6 +14,8 @@ struct services {
uint8_t online;
/* unix timestamp of last bad request */
__time_t bad;
+ /* count the number of bad requests */
+ unsigned int badcount;
};
/* hosts */
@@ -41,8 +43,8 @@ struct request {
const char * host;
/* port */
uint16_t port;
- /* pointer to bad */
- __time_t * bad;
+ /* pointer to service */
+ struct services * service;
/* url */
char * url;
/* HTTP status code */