From 1d6007e9e9ba6a7fa8a77b1a4e1e14ca26be6374 Mon Sep 17 00:00:00 2001 From: Neven Miculinic Date: Thu, 28 Mar 2019 12:46:23 +0100 Subject: [PATCH] fix silly mistake --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index b4c3f3c..3487bc2 100644 --- a/config.go +++ b/config.go @@ -172,7 +172,7 @@ func parseInterfaceLine(cfg *Config, lhs string, rhs string) error { for _, addr := range strings.Split(rhs, ",") { ip, cidr, err := net.ParseCIDR(strings.TrimSpace(addr)) if err != nil { - return fmt.Errorf("%v", err) + return err } cfg.Address = append(cfg.Address, &net.IPNet{IP: ip, Mask: cidr.Mask}) }