From d7a68ecedd50449e655696b26c96d9a3231a2c14 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Tue, 16 Jun 2020 13:08:14 +0200 Subject: [PATCH] Use lookup Signed-off-by: Julien Pivotto --- prober/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prober/utils.go b/prober/utils.go index 76b62e60..31b5b441 100644 --- a/prober/utils.go +++ b/prober/utils.go @@ -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) }