Add rule-set

This commit is contained in:
世界
2023-12-01 13:24:12 +08:00
parent 2ef67c5f95
commit 9d2808b2d1
51 changed files with 2975 additions and 265 deletions

View File

@@ -25,7 +25,7 @@ func (c *CacheFile) FakeIPMetadata() *adapter.FakeIPMetadata {
err := c.DB.Batch(func(tx *bbolt.Tx) error {
bucket := tx.Bucket(bucketFakeIP)
if bucket == nil {
return nil
return os.ErrNotExist
}
metadataBinary := bucket.Get(keyMetadata)
if len(metadataBinary) == 0 {