mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
iproute2: skip setting addrs on parse error
This commit is contained in:
@@ -25,10 +25,13 @@ func NewAddress(ifname string, addresses ...string) *Address {
|
||||
if err != nil {
|
||||
r.addrBad = true
|
||||
r.addErr(err, "parse addr")
|
||||
continue
|
||||
}
|
||||
addrs[i] = addr
|
||||
}
|
||||
r.addrs = addrs
|
||||
if !r.addrBad {
|
||||
r.addrs = addrs
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user