Skip to content

Commit

Permalink
fix: iterate over correct datastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Jun 2, 2023
1 parent 7ca9cd5 commit 2c3bfcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/resolvers/http_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (resolver *HttpResolver) Resolve() (*common.ResolvedIp, error) {
Timestamp: time.Now(),
}

for _, addressFamily := range serverAddresses {
for _, addressFamily := range resolver.addressFamilies {
serverAddress, ok := serverAddresses[addressFamily]
if !ok {
log.Warn().Msgf("unknown address family: '%s', check your configuration", addressFamily)
Expand Down

0 comments on commit 2c3bfcd

Please sign in to comment.