Skip to content

Commit

Permalink
ipv64: remove unused option (#2022)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Sep 20, 2023
1 parent d0aa6b3 commit b523518
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cmd/zz_gen_cmd_dnshelp.go
Expand Up @@ -1071,7 +1071,8 @@ func displayDNSHelp(w io.Writer, name string) error {
ew.writeln()

ew.writeln(`Credentials:`)
ew.writeln(` - "GANDIV5_API_KEY": API key`)
ew.writeln(` - "GANDIV5_API_KEY": API key (Deprecated)`)
ew.writeln(` - "GANDIV5_PERSONAL_ACCESS_TOKEN": Personal Access Token`)
ew.writeln()

ew.writeln(`Additional Configuration:`)
Expand Down Expand Up @@ -1512,7 +1513,6 @@ func displayDNSHelp(w io.Writer, name string) error {
ew.writeln(` - "IPV64_HTTP_TIMEOUT": API request timeout`)
ew.writeln(` - "IPV64_POLLING_INTERVAL": Time between DNS propagation check`)
ew.writeln(` - "IPV64_PROPAGATION_TIMEOUT": Maximum waiting time for DNS propagation`)
ew.writeln(` - "IPV64_SEQUENCE_INTERVAL": Time between sequential requests`)
ew.writeln(` - "IPV64_TTL": The TTL of the TXT record used for the DNS challenge`)

ew.writeln()
Expand Down
5 changes: 3 additions & 2 deletions docs/content/dns/zz_gen_gandiv5.md
Expand Up @@ -26,7 +26,7 @@ Configuration for [Gandi Live DNS (v5)](https://www.gandi.net).
Here is an example bash command using the Gandi Live DNS (v5) provider:

```bash
GANDIV5_API_KEY=abcdefghijklmnopqrstuvwx \
GANDIV5_PERSONAL_ACCESS_TOKEN=abcdefghijklmnopqrstuvwx \
lego --email you@example.com --dns gandiv5 --domains my.example.org run
```

Expand All @@ -37,7 +37,8 @@ lego --email you@example.com --dns gandiv5 --domains my.example.org run

| Environment Variable Name | Description |
|-----------------------|-------------|
| `GANDIV5_API_KEY` | API key |
| `GANDIV5_API_KEY` | API key (Deprecated) |
| `GANDIV5_PERSONAL_ACCESS_TOKEN` | Personal Access Token |

The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.
More information [here]({{< ref "dns#configuration-and-credentials" >}}).
Expand Down
1 change: 0 additions & 1 deletion docs/content/dns/zz_gen_ipv64.md
Expand Up @@ -50,7 +50,6 @@ More information [here]({{< ref "dns#configuration-and-credentials" >}}).
| `IPV64_HTTP_TIMEOUT` | API request timeout |
| `IPV64_POLLING_INTERVAL` | Time between DNS propagation check |
| `IPV64_PROPAGATION_TIMEOUT` | Maximum waiting time for DNS propagation |
| `IPV64_SEQUENCE_INTERVAL` | Time between sequential requests |
| `IPV64_TTL` | The TTL of the TXT record used for the DNS challenge |

The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.
Expand Down
5 changes: 2 additions & 3 deletions providers/dns/ipv64/ipv64.go
Expand Up @@ -24,24 +24,23 @@ const (
EnvPropagationTimeout = envNamespace + "PROPAGATION_TIMEOUT"
EnvPollingInterval = envNamespace + "POLLING_INTERVAL"
EnvHTTPTimeout = envNamespace + "HTTP_TIMEOUT"
EnvSequenceInterval = envNamespace + "SEQUENCE_INTERVAL"
EnvSequenceInterval = envNamespace + "SEQUENCE_INTERVAL" // Deprecated: unused, will be removed in v5.
)

// Config is used to configure the creation of the DNSProvider.
type Config struct {
APIKey string
PropagationTimeout time.Duration
PollingInterval time.Duration
SequenceInterval time.Duration
HTTPClient *http.Client
SequenceInterval time.Duration // Deprecated: unused, will be removed in v5.
}

// NewDefaultConfig returns a default configuration for the DNSProvider.
func NewDefaultConfig() *Config {
return &Config{
PropagationTimeout: env.GetOrDefaultSecond(EnvPropagationTimeout, dns01.DefaultPropagationTimeout),
PollingInterval: env.GetOrDefaultSecond(EnvPollingInterval, dns01.DefaultPollingInterval),
SequenceInterval: env.GetOrDefaultSecond(EnvSequenceInterval, dns01.DefaultPropagationTimeout),
HTTPClient: &http.Client{
Timeout: env.GetOrDefaultSecond(EnvHTTPTimeout, 30*time.Second),
},
Expand Down
1 change: 0 additions & 1 deletion providers/dns/ipv64/ipv64.toml
Expand Up @@ -17,7 +17,6 @@ lego --email you@example.com --dns ipv64 --domains my.example.org run
IPV64_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
IPV64_TTL = "The TTL of the TXT record used for the DNS challenge"
IPV64_HTTP_TIMEOUT = "API request timeout"
IPV64_SEQUENCE_INTERVAL = "Time between sequential requests"

[Links]
API = "https://ipv64.net/dyndns_updater_api"

0 comments on commit b523518

Please sign in to comment.