fix silly mistake

This commit is contained in:
Neven Miculinic 2019-03-28 12:46:23 +01:00
parent 875513e4af
commit 1d6007e9e9

View File

@ -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})
}