Developing lightweight computation at the DSG edge

Commit 34d202c1 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[fetch] Do not duplicate the main IPv4 address


Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent 30c6317e
......@@ -499,7 +499,7 @@ func getIpv4AddressesInDevice(device Device) []string {
//Iterate all the interfaces of the device in search of more IPv4 addresses
for _, v := range device.Interfaces {
if v.Ipv4 != "" {
if v.Ipv4 != "" && v.Ipv4 != device.MainIpv4 {
ipv4Addresses = append(ipv4Addresses, v.Ipv4)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment