Skip to content

Commit

Permalink
Lint fix and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners committed Mar 31, 2024
1 parent 3e8fe5c commit bb7a59f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions challenge/dns01/nameserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func TestSendDNSQuery(t *testing.T) {
msg := createDNSMsg("example.com.", dns.TypeA, true)
result, queryError := sendDNSQuery(msg, addr)
require.NoError(t, queryError)
assert.Equal(t, result.Answer[0].(*dns.A).A.String(), "127.0.0.1")
assert.Equal(t, "127.0.0.1", result.Answer[0].(*dns.A).A.String())
})

t.Run("does udp6 only", func(t *testing.T) {
Expand All @@ -105,7 +105,7 @@ func TestSendDNSQuery(t *testing.T) {
msg := createDNSMsg("example.com.", dns.TypeA, true)
result, queryError := sendDNSQuery(msg, addr)
require.NoError(t, queryError)
assert.Equal(t, result.Answer[0].(*dns.A).A.String(), "127.0.0.1")
assert.Equal(t, "127.0.0.1", result.Answer[0].(*dns.A).A.String())
})

t.Run("does tcp4 and tcp6", func(t *testing.T) {
Expand All @@ -119,14 +119,14 @@ func TestSendDNSQuery(t *testing.T) {
msg := createDNSMsg("example.com.", dns.TypeA, true)
result, queryError := sendDNSQuery(msg, addr6)
require.NoError(t, queryError)
assert.Equal(t, result.Answer[0].(*dns.A).A.String(), "127.0.0.1")
assert.Equal(t, "127.0.0.1", result.Answer[0].(*dns.A).A.String())

addr4 := net.JoinHostPort("127.0.0.1", port)
recursiveNameservers = ParseNameservers([]string{addr4})
msg = createDNSMsg("example.com.", dns.TypeA, true)
result, queryError = sendDNSQuery(msg, addr4)
require.NoError(t, queryError)
assert.Equal(t, result.Answer[0].(*dns.A).A.String(), "127.0.0.1")
assert.Equal(t, "127.0.0.1", result.Answer[0].(*dns.A).A.String())
})
}

Expand Down
4 changes: 2 additions & 2 deletions docs/data/zz_cli_help.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--ipv4only, -4 Use IPv4 only. This flag is ignored if ipv6only is also specified. (default: false)
--ipv6only, -6 Use IPv6 only. This flag is ignored if ipv4only is also specified. (default: false)
--domains value, -d value [ --domains value, -d value ] Add a domain to the process. Can be specified multiple times.
--server value, -s value CA hostname (and optionally :port). The server certificate must be trusted in order to avoid further modifications to the client. (default: "https://acme-v02.api.letsencrypt.org/directory") [$LEGO_SERVER]
--accept-tos, -a By setting this flag to true you indicate that you accept the current Let's Encrypt terms of service. (default: false)
Expand All @@ -36,8 +38,6 @@ GLOBAL OPTIONS:
--http.webroot value Set the webroot folder to use for HTTP-01 based challenges to write directly to the .well-known/acme-challenge file. This disables the built-in server and expects the given directory to be publicly served with access to .well-known/acme-challenge
--http.memcached-host value [ --http.memcached-host value ] Set the memcached host(s) to use for HTTP-01 based challenges. Challenges will be written to all specified hosts.
--http.s3-bucket value Set the S3 bucket name to use for HTTP-01 based challenges. Challenges will be written to the S3 bucket.
--ipv4only, -4 Use IPv4 only. This flag is ignored if ipv6only is also specified. (default: false)
--ipv6only, -6 Use IPv6 only. This flag is ignored if ipv4only is also specified. (default: false)
--tls Use the TLS-ALPN-01 challenge to solve challenges. Can be mixed with other types of challenges. (default: false)
--tls.port value Set the port and interface to use for TLS-ALPN-01 based challenges to listen on. Supported: interface:port or :port. (default: ":443")
--dns value Solve a DNS-01 challenge using the specified provider. Can be mixed with other types of challenges. Run 'lego dnshelp' for help on usage.
Expand Down

0 comments on commit bb7a59f

Please sign in to comment.