mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
fix: [d4] change enable d4
This commit is contained in:
parent
4cd2b6517b
commit
70802205f2
1 changed files with 2 additions and 2 deletions
|
@ -50,8 +50,8 @@ def is_passive_dns_enabled(cache=True):
|
|||
def change_passive_dns_state(new_state):
|
||||
old_state = is_passive_dns_enabled(cache=False)
|
||||
if old_state != new_state:
|
||||
r_serv_db.hset('d4:passivedns', 'enabled', bool(new_state))
|
||||
r_cache.set('d4:passivedns:enabled', bool(new_state))
|
||||
r_serv_db.hset('d4:passivedns', 'enabled', str(new_state))
|
||||
r_cache.set('d4:passivedns:enabled', str(new_state))
|
||||
update_time = time.time()
|
||||
r_serv_db.hset('d4:passivedns', 'update_time', update_time)
|
||||
r_cache.set('d4:passivedns:last_update_time', update_time)
|
||||
|
|
Loading…
Reference in a new issue