updated lock to ipbl
This commit is contained in:
parent
c5ab1fad2d
commit
826c906777
@ -66,6 +66,7 @@ func InsertIPBulk(cfg *config.Config, ips *[]IP) (numinserts int64, numfail int6
|
||||
|
||||
func ScanIP(cfg *config.Config, lock *bool) (err error) {
|
||||
if !*lock {
|
||||
*lock = true
|
||||
for {
|
||||
var orphans = []IP{}
|
||||
cfg.Db.Where("rdns IS NULL").Asc("ip").Find(&orphans)
|
||||
|
Loading…
Reference in New Issue
Block a user