From a9b8d0e9f48c4ebc9085ef3bc3a854f9cdbae49d Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sun, 29 Dec 2013 11:10:01 +0100 Subject: [PATCH] Add a list of supported RR type by the back-end --- bin/qof-server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/qof-server.py b/bin/qof-server.py index 87d63c0..ef88cda 100644 --- a/bin/qof-server.py +++ b/bin/qof-server.py @@ -27,6 +27,8 @@ rrset = [{"Reference": "[RFC1035]", "Type": "A", "Value": "1", "Meaning": "a hos r=redis.StrictRedis(host='localhost', port=6379, db=0) +rrset_supported = ['1','2','5','15','28','33'] + def getFirstSeen(t1 = None, t2 = None): if t1 is None or t2 is None: return False @@ -56,7 +58,7 @@ def getRecord(t = None): return False rrfound = [] for rr in rrset: - if (rr['Value']) is not None: + if (rr['Value']) is not None and rr['Value'] in rrset_supported: rec = "r:"+t+":"+rr['Value'] if r.smembers(rec): rrval = {}