This commit is contained in:
parent
670f8a6f9f
commit
62ed0e030c
@ -206,7 +206,10 @@ func ScanOrphan(wg *sync.WaitGroup, orphans chan IP, done chan bool, thr int, cf
|
|||||||
log.Printf("%s -> \"%s\"\n", orphan.IP, query.Rdns)
|
log.Printf("%s -> \"%s\"\n", orphan.IP, query.Rdns)
|
||||||
}
|
}
|
||||||
|
|
||||||
orphan.GetOrCreate(session)
|
_, err = orphan.GetOrCreate(session)
|
||||||
|
if err != nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
err = session.Commit()
|
err = session.Commit()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user