Fixes outdated IPv6 TODO on `getAddr`. (#2601)
The VA's `getAddr` function prior to this commit had an outdated comment & a pointer to a TODO for Boulder Issue #593. That issue has been closed and bdns' `LookupHost` supports AAAA records now. This commit updates the comment to match the current behaviour and removes the TODO.
This commit is contained in:
parent
8a1adbdc9a
commit
e81f7477a3
9
va/va.go
9
va/va.go
|
|
@ -97,11 +97,10 @@ type verificationRequestEvent struct {
|
|||
Error string `json:",omitempty"`
|
||||
}
|
||||
|
||||
// getAddr will query for all A records associated with hostname and return the
|
||||
// preferred address, the first net.IP in the addrs slice, and all addresses resolved.
|
||||
// This is the same choice made by the Go internal resolution library used by
|
||||
// net/http, except we only send A queries and accept IPv4 addresses.
|
||||
// TODO(#593): Add IPv6 support
|
||||
// getAddr will query for all A/AAAA records associated with hostname and return
|
||||
// the preferred address, the first net.IP in the addrs slice, and all addresses
|
||||
// resolved. This is the same choice made by the Go internal resolution library
|
||||
// used by net/http.
|
||||
func (va ValidationAuthorityImpl) getAddr(ctx context.Context, hostname string) (net.IP, []net.IP, *probs.ProblemDetails) {
|
||||
addrs, err := va.dnsResolver.LookupHost(ctx, hostname)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue