Add ignore exist address error in SyncAddress() (#3)
Fix IPv6 addresses
This commit is contained in:
parent
77aa012d20
commit
551e747c00
6
wg.go
6
wg.go
@ -229,8 +229,10 @@ func SyncAddress(cfg *Config, link netlink.Link, log logrus.FieldLogger) error {
|
|||||||
IPNet: &addr,
|
IPNet: &addr,
|
||||||
Label: cfg.AddressLabel,
|
Label: cfg.AddressLabel,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
log.WithError(err).Error("cannot add addr")
|
if err != syscall.EEXIST {
|
||||||
return err
|
log.WithError(err).Error("cannot add addr")
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
log.Info("address added")
|
log.Info("address added")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user