aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-06-18 22:28:17 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-06-18 22:28:17 +0200
commitd8194e0d2cc27c426d1619a26eab5738e3a83fde (patch)
tree16d3c05ff337774a4e9ad73d7fe3955673745643
parentd8cc5b57de28615c53d0803ebcd92f39ee05f7d6 (diff)
download0tdns-d8194e0d2cc27c426d1619a26eab5738e3a83fde.tar.gz
0tdns-d8194e0d2cc27c426d1619a26eab5738e3a83fde.zip
treat both yes and yes (with quotes) in the config as True
-rwxr-xr-xsrc/hourly.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hourly.py b/src/hourly.py
index 26454ae..ca9fc2f 100755
--- a/src/hourly.py
+++ b/src/hourly.py
@@ -139,7 +139,7 @@ def get_available_subnetworks(count, address_ranges):
def do_hourly_work(hour):
ztdns_config = get_ztdns_config()
- if ztdns_config['enabled'] != 'yes':
+ if ztdns_config['enabled'] not in ['yes', True]:
log('0tdns not enabled in the config - exiting')
return