From 806ef243d15dd0249fd31f1f72b51b16f69dc56f Mon Sep 17 00:00:00 2001 From: john dev Date: Thu, 30 Jun 2022 10:55:08 +0200 Subject: [PATCH] hetzner: set min TTL to 60s (#1666) --- providers/dns/hetzner/hetzner.go | 2 +- providers/dns/hetzner/hetzner_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/dns/hetzner/hetzner.go b/providers/dns/hetzner/hetzner.go index 29549bc9..33ffa8ba 100644 --- a/providers/dns/hetzner/hetzner.go +++ b/providers/dns/hetzner/hetzner.go @@ -13,7 +13,7 @@ import ( "github.com/go-acme/lego/v4/providers/dns/hetzner/internal" ) -const minTTL = 600 +const minTTL = 60 // Environment variables names. const ( diff --git a/providers/dns/hetzner/hetzner_test.go b/providers/dns/hetzner/hetzner_test.go index f69fcdc1..d028fd06 100644 --- a/providers/dns/hetzner/hetzner_test.go +++ b/providers/dns/hetzner/hetzner_test.go @@ -74,8 +74,8 @@ func TestNewDNSProviderConfig(t *testing.T) { { desc: "invalid TTL", apiKey: "123", - ttl: 60, - expected: "hetzner: invalid TTL, TTL (60) must be greater than 600", + ttl: 10, + expected: "hetzner: invalid TTL, TTL (10) must be greater than 60", }, }