mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-10 12:00:28 +08:00
提升IP名单性能
This commit is contained in:
@@ -7,12 +7,12 @@ import (
|
||||
)
|
||||
|
||||
func TestIP2Long(t *testing.T) {
|
||||
t.Log(utils.IP2Long("0.0.0.0"))
|
||||
t.Log(utils.IP2Long("1.0.0.0"))
|
||||
t.Log(utils.IP2Long("0.0.0.0.0"))
|
||||
t.Log(utils.IP2Long("2001:db8:0:1::101"))
|
||||
t.Log(utils.IP2Long("2001:db8:0:1::102"))
|
||||
t.Log(utils.IP2Long("::1"))
|
||||
t.Log(utils.IP2LongHash("0.0.0.0"))
|
||||
t.Log(utils.IP2LongHash("1.0.0.0"))
|
||||
t.Log(utils.IP2LongHash("0.0.0.0.0"))
|
||||
t.Log(utils.IP2LongHash("2001:db8:0:1::101"))
|
||||
t.Log(utils.IP2LongHash("2001:db8:0:1::102"))
|
||||
t.Log(utils.IP2LongHash("::1"))
|
||||
}
|
||||
|
||||
func TestIsLocalIP(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user