mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-15 23:26:36 +08:00
实现IP黑白名单、国家|地区封禁、省份封禁
This commit is contained in:
12
internal/iplibrary/manager_ip_list_test.go
Normal file
12
internal/iplibrary/manager_ip_list_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package iplibrary
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestIPListManager_loop(t *testing.T) {
|
||||
manager := NewIPListManager()
|
||||
manager.pageSize = 2
|
||||
err := manager.loop()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user