From 8d39d149ec90b1b2be779c8e9e0eb71061420b4f Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 11 Mar 2024 08:31:25 +0100 Subject: [PATCH] Default to 60 seconds ttl if it is None. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 63681c0..788b9fb 100755 --- a/main.py +++ b/main.py @@ -28,7 +28,7 @@ config_schema = Schema({ Optional('logging', default={'level': ':WARNING,ovhdns:INFO'}): { Optional('level', default=':WARNING,ovhdns:INFO'): Use(str), }, - Optional('ttl', default=60): Use(lambda i: int(i) if i is not None else None), + Optional('ttl', default=60): Use(lambda i: int(i) if i is not None else 60), }) def get_opendns_ips():