Skip to content

Commit 4e18d91

Browse files
committed
Simplify prepChallengeForDisplay
1 parent e81cf81 commit 4e18d91

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

core/objects.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ type ValidationRecord struct {
144144
// ResolverAddrs is the host:port of the DNS resolver(s) that fulfilled the
145145
// lookup for AddressUsed. During recursive A and AAAA lookups, a record may
146146
// instead look like A:host:port or AAAA:host:port
147-
ResolverAddrs []string `json:"resolverAddrs,omitempty"`
147+
ResolverAddrs []string `json:"-"`
148148
}
149149

150150
// Challenge is an aggregate of all data needed for any challenges.

wfe2/wfe.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,11 +1217,6 @@ func (wfe *WebFrontEndImpl) prepChallengeForDisplay(
12171217
if authz.Status == core.StatusInvalid {
12181218
challenge.Status = authz.Status
12191219
}
1220-
1221-
// This field is not useful for the client, only internal debugging,
1222-
for idx := range challenge.ValidationRecord {
1223-
challenge.ValidationRecord[idx].ResolverAddrs = nil
1224-
}
12251220
}
12261221

12271222
// prepAuthorizationForDisplay takes a core.Authorization and prepares it for

0 commit comments

Comments
 (0)