From b65dfb86612ade74f26633b26be942b4c9d20c90 Mon Sep 17 00:00:00 2001 From: "Tobias \"Knight\" S" Date: Sun, 28 Feb 2021 03:23:28 +0100 Subject: [PATCH] desec: fix error with default TTL (#1361) --- providers/dns/desec/desec.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/providers/dns/desec/desec.go b/providers/dns/desec/desec.go index 0a3e138e..1409bd81 100644 --- a/providers/dns/desec/desec.go +++ b/providers/dns/desec/desec.go @@ -24,6 +24,10 @@ const ( EnvHTTPTimeout = envNamespace + "HTTP_TIMEOUT" ) +// https://github.com/desec-io/desec-stack/issues/216 +// https://desec.readthedocs.io/_/downloads/en/latest/pdf/ +const defaultTTL int = 3600 + // Config is used to configure the creation of the DNSProvider. type Config struct { Token string @@ -36,7 +40,7 @@ type Config struct { // NewDefaultConfig returns a default configuration for the DNSProvider. func NewDefaultConfig() *Config { return &Config{ - TTL: env.GetOrDefaultInt(EnvTTL, 300), + TTL: env.GetOrDefaultInt(EnvTTL, defaultTTL), PropagationTimeout: env.GetOrDefaultSecond(EnvPropagationTimeout, dns01.DefaultPropagationTimeout), PollingInterval: env.GetOrDefaultSecond(EnvPollingInterval, dns01.DefaultPollingInterval), HTTPClient: &http.Client{