From 180f11cb86129c877dcd42841403f5d659bd218c Mon Sep 17 00:00:00 2001 From: Ruakij Date: Thu, 17 Nov 2022 14:51:38 +0100 Subject: [PATCH] Add warning-output for errors in iproute2mapping --- cmd/app/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/app/main.go b/cmd/app/main.go index e75798b..14c9eda 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -37,6 +37,11 @@ func main() { iface := os.Getenv("INTERFACE") //MANAGE_ALL = os.Getenv("MANAGE_ALL") + // Check if ip2Map has init-errors + for _, err := range ip2Map.Errors { + logger.Warn.Printf("iproute2mapping: %s", err) + } + // Parse filter-env-vars filterProtocolStr := os.Getenv("FILTER_PROTOCOL") filterProtocol, err := ip2Map.TryGetId(ip2Map.PROTOCOL, filterProtocolStr)