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
Alexandre Dulaunoy 2019-03-31 16:48:46 +02:00
parent 594b6a87ee
commit 2c799f5f4c
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 2 additions and 0 deletions

View File

@ -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'])