mirror of
https://github.com/go-acme/lego.git
synced 2024-12-27 03:32:05 +02:00
hetzner: set min TTL to 60s (#1666)
This commit is contained in:
parent
0e614c1d0b
commit
806ef243d1
@ -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 (
|
||||
|
@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user