mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-14 16:30:26 +08:00
自动加入名单不需要即时更新
This commit is contained in:
@@ -186,8 +186,8 @@ func (this *IPItemDAO) CreateIPItem(tx *dbs.Tx,
|
|||||||
}
|
}
|
||||||
itemId := types.Int64(op.Id)
|
itemId := types.Int64(op.Id)
|
||||||
|
|
||||||
// 全局名单不需要即时更新,防止数量过多而导致性能问题
|
// 自动加入名单不需要即时更新,防止数量过多而导致性能问题
|
||||||
if listId == firewallconfigs.GlobalListId {
|
if listId == firewallconfigs.GlobalListId || sourceNodeId > 0 || sourceServerId > 0 || sourceHTTPFirewallPolicyId > 0 {
|
||||||
return itemId, nil
|
return itemId, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user