mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-16 07:46:36 +08:00
更好地支持IPv6/优化IP名单内存用量
This commit is contained in:
@@ -6,15 +6,6 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestIP2Long(t *testing.T) {
|
||||
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) {
|
||||
var a = assert.NewAssertion(t)
|
||||
a.IsFalse(utils.IsLocalIP("a"))
|
||||
|
||||
Reference in New Issue
Block a user