Skip to content

Commit bb7a59f

Browse files
committed
Lint fix and docs
1 parent 3e8fe5c commit bb7a59f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

challenge/dns01/nameserver_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func TestSendDNSQuery(t *testing.T) {
9494
msg := createDNSMsg("example.com.", dns.TypeA, true)
9595
result, queryError := sendDNSQuery(msg, addr)
9696
require.NoError(t, queryError)
97-
assert.Equal(t, result.Answer[0].(*dns.A).A.String(), "127.0.0.1")
97+
assert.Equal(t, "127.0.0.1", result.Answer[0].(*dns.A).A.String())
9898
})
9999

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

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

124124
addr4 := net.JoinHostPort("127.0.0.1", port)
125125
recursiveNameservers = ParseNameservers([]string{addr4})
126126
msg = createDNSMsg("example.com.", dns.TypeA, true)
127127
result, queryError = sendDNSQuery(msg, addr4)
128128
require.NoError(t, queryError)
129-
assert.Equal(t, result.Answer[0].(*dns.A).A.String(), "127.0.0.1")
129+
assert.Equal(t, "127.0.0.1", result.Answer[0].(*dns.A).A.String())
130130
})
131131
}
132132

docs/data/zz_cli_help.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ COMMANDS:
1919
help, h Shows a list of commands or help for one command
2020
2121
GLOBAL OPTIONS:
22+
--ipv4only, -4 Use IPv4 only. This flag is ignored if ipv6only is also specified. (default: false)
23+
--ipv6only, -6 Use IPv6 only. This flag is ignored if ipv4only is also specified. (default: false)
2224
--domains value, -d value [ --domains value, -d value ] Add a domain to the process. Can be specified multiple times.
2325
--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]
2426
--accept-tos, -a By setting this flag to true you indicate that you accept the current Let's Encrypt terms of service. (default: false)
@@ -36,8 +38,6 @@ GLOBAL OPTIONS:
3638
--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
3739
--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.
3840
--http.s3-bucket value Set the S3 bucket name to use for HTTP-01 based challenges. Challenges will be written to the S3 bucket.
39-
--ipv4only, -4 Use IPv4 only. This flag is ignored if ipv6only is also specified. (default: false)
40-
--ipv6only, -6 Use IPv6 only. This flag is ignored if ipv4only is also specified. (default: false)
4141
--tls Use the TLS-ALPN-01 challenge to solve challenges. Can be mixed with other types of challenges. (default: false)
4242
--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")
4343
--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.

0 commit comments

Comments
 (0)