优化代码

This commit is contained in:
刘祥超
2022-09-18 16:18:31 +08:00
parent 64b1753c4d
commit a81d610302
19 changed files with 10 additions and 115 deletions

View File

@@ -5,12 +5,9 @@ import (
"github.com/cespare/xxhash"
"math"
"net"
"regexp"
"strings"
)
var ipv4Reg = regexp.MustCompile(`\d+\.`)
// IP2Long 将IP转换为整型
// 注意IPv6没有顺序
func IP2Long(ip string) uint64 {