fix learning nodes
This commit is contained in:
@@ -61,6 +61,11 @@ func UpdateIpTable(IpAddress string, serverPort string) error {
|
||||
}
|
||||
}
|
||||
|
||||
err = ipStruct.WriteIpTable()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -155,6 +155,7 @@ func (table *IpAddresses) RemoveDuplicates() error {
|
||||
if table.IpAddress[i].NAT == "True" && table.IpAddress[i].EscapeImplementation == "None" {
|
||||
Exists = true
|
||||
}
|
||||
|
||||
if Exists {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user