From 044748c2ce4b83a5c3352e95d27fff3bcb84f317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Tue, 11 Sep 2018 18:16:14 +0200 Subject: [PATCH] Fix exposing the country code --- internal/log/handlers/cli/results.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/log/handlers/cli/results.go b/internal/log/handlers/cli/results.go index 887117a..9c3462f 100644 --- a/internal/log/handlers/cli/results.go +++ b/internal/log/handlers/cli/results.go @@ -77,7 +77,7 @@ func logResultItem(w io.Writer, f log.Fields) error { name := f.Get("name").(string) startTime := f.Get("start_time").(time.Time) networkName := f.Get("network_name").(string) - asn := fmt.Sprintf("AS%d (%s)", f.Get("asn").(uint), f.Get("country").(string)) + asn := fmt.Sprintf("AS%d (%s)", f.Get("asn").(uint), f.Get("network_country_code").(string)) //runtime := f.Get("runtime").(float64) //dataUsageUp := f.Get("dataUsageUp").(int64) //dataUsageDown := f.Get("dataUsageDown").(int64)