Skip to content

Commit

Permalink
hetzner: set min TTL to 60s (#1666)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoSev committed Jun 30, 2022
1 parent 0e614c1 commit 806ef24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion providers/dns/hetzner/hetzner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions providers/dns/hetzner/hetzner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}

Expand Down

0 comments on commit 806ef24

Please sign in to comment.