From 72c332edb3243147f63d36ca7ddaa385a1d7c5d7 Mon Sep 17 00:00:00 2001 From: "Ciro S. Costa" Date: Sun, 11 Jul 2021 07:37:54 -0400 Subject: [PATCH] pkg/collector: `unknown` when geoip is not provided Signed-off-by: Ciro S. Costa --- .gitignore | 1 + pkg/collector/collector.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..849ddff --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dist/ diff --git a/pkg/collector/collector.go b/pkg/collector/collector.go index f931877..04d44a8 100644 --- a/pkg/collector/collector.go +++ b/pkg/collector/collector.go @@ -75,7 +75,7 @@ func Register(client *daemon.Client, opts ...Option) error { c := &Collector{ client: client, log: zapr.NewLogger(defaultLogger.Named("collector")), - countryMapper: func(_ net.IP) (string, error) { return "lol", nil }, + countryMapper: func(_ net.IP) (string, error) { return "unknown", nil }, } for _, opt := range opts {