Skip to content

Commit f2ef498

Browse files
committed
Lint fix and docs
1 parent 91e8950 commit f2ef498

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

challenge/dns01/nameserver_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func TestSendDNSQuery(t *testing.T) {
9393
msg := createDNSMsg("example.com.", dns.TypeA, true)
9494
result, queryError := sendDNSQuery(msg, addr)
9595
require.NoError(t, queryError)
96-
assert.Equal(t, result.Answer[0].(*dns.A).A.String(), "127.0.0.1")
96+
assert.Equal(t, "127.0.0.1", result.Answer[0].(*dns.A).A.String())
9797
})
9898

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

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

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

docs/data/zz_cli_help.toml

Lines changed: 2 additions & 2 deletions
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)