summaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authorGeorg2021-08-26 19:32:58 +0200
committerGeorg2021-08-26 19:32:58 +0200
commitc5a37126bc71f8330db54376f46d1ef0d5251c83 (patch)
tree3f384814b97746182421fd18287722544eb8ded1 /config.py
parent78161bda7f95cfd72b1386ab7bb93c4aad7b741c (diff)
downloadsnoparser-c5a37126bc71f8330db54376f46d1ef0d5251c83.tar.gz
snoparser-c5a37126bc71f8330db54376f46d1ef0d5251c83.tar.bz2
snoparser-c5a37126bc71f8330db54376f46d1ef0d5251c83.zip
Improved `ipcounting`
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'config.py')
-rw-r--r--config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.py b/config.py
index 983cb6d..90dd9c9 100644
--- a/config.py
+++ b/config.py
@@ -140,6 +140,13 @@ conf.registerGlobalValue(SnoParser.whois, 'sample',
"""
, private=True
))
+conf.registerGlobalValue(SnoParser.whois, 'ttl',
+ registry.Integer('3600',
+ """
+ SnoParser: How long to cache WHOIS entries for.
+ """
+ , private=True
+))
conf.registerGroup(SnoParser.whois, 'redis')
conf.registerGlobalValue(SnoParser.whois.redis, 'db',
registry.Integer('0',