Skip to content

Commit

Permalink
Use lookup
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Pivotto <[email protected]>
  • Loading branch information
roidelapluie committed Jun 16, 2020
1 parent 474f012 commit d7a68ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prober/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func ipHash(ip net.IP) float64 {
}

func internationalizeDNSTarget(logger log.Logger, target string) (string, error) {
idnaTarget, err := idna.ToASCII(target)
idnaTarget, err := idna.Lookup.ToASCII(target)
if err != nil {
return target, fmt.Errorf("error while internationalizing target: %w", err)
}
Expand Down

0 comments on commit d7a68ec

Please sign in to comment.