fix silly mistake
This commit is contained in:
parent
875513e4af
commit
1d6007e9e9
@ -172,7 +172,7 @@ func parseInterfaceLine(cfg *Config, lhs string, rhs string) error {
|
|||||||
for _, addr := range strings.Split(rhs, ",") {
|
for _, addr := range strings.Split(rhs, ",") {
|
||||||
ip, cidr, err := net.ParseCIDR(strings.TrimSpace(addr))
|
ip, cidr, err := net.ParseCIDR(strings.TrimSpace(addr))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("%v", err)
|
return err
|
||||||
}
|
}
|
||||||
cfg.Address = append(cfg.Address, &net.IPNet{IP: ip, Mask: cidr.Mask})
|
cfg.Address = append(cfg.Address, &net.IPNet{IP: ip, Mask: cidr.Mask})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user