1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-26 11:18:00 +02:00

hetzner: set min TTL to 60s (#1666)

This commit is contained in:
john dev 2022-06-30 10:55:08 +02:00 committed by GitHub
parent 0e614c1d0b
commit 806ef243d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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 (

View File

@ -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",
},
}