chg: [temporary fix] trailing quotation mark removed
TODO: Find a better way to set the key value for the DNS types which are long and complex. An MD5 value?pull/3/head
parent
594b6a87ee
commit
2c799f5f4c
|
@ -99,6 +99,8 @@ while (True):
|
|||
if 'q' not in rdns:
|
||||
continue
|
||||
if rdns['q'] and rdns['type']:
|
||||
if rdns['type'] == '16':
|
||||
rdns['v'] = rdns['v'].replace("\"", "", 1)
|
||||
query = "r:{}:{}".format(rdns['q'],rdns['type'])
|
||||
logger.debug('redis sadd: {} -> {}'.format(query,rdns['v']))
|
||||
r.sadd(query, rdns['v'])
|
||||
|
|
Loading…
Reference in New Issue