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,
|
||||
Label: cfg.AddressLabel,
|
||||
}); err != nil {
|
||||
log.WithError(err).Error("cannot add addr")
|
||||
return err
|
||||
if err != syscall.EEXIST {
|
||||
log.WithError(err).Error("cannot add addr")
|
||||
return err
|
||||
}
|
||||
}
|
||||
log.Info("address added")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user