mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-12 22:40:25 +08:00
调整格式等
This commit is contained in:
@@ -108,8 +108,6 @@ func (this *SyncAPINodesTask) isSame(endpoints1 []string, endpoints2 []string) b
|
|||||||
return strings.Join(endpoints1, "&") == strings.Join(endpoints2, "&")
|
return strings.Join(endpoints1, "&") == strings.Join(endpoints2, "&")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func (this *SyncAPINodesTask) testEndpoints(endpoints []string) bool {
|
func (this *SyncAPINodesTask) testEndpoints(endpoints []string) bool {
|
||||||
if len(endpoints) == 0 {
|
if len(endpoints) == 0 {
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 将IP转换为整型
|
// IP2Long 将IP转换为整型
|
||||||
// 注意IPv6没有顺序
|
// 注意IPv6没有顺序
|
||||||
func IP2Long(ip string) uint64 {
|
func IP2Long(ip string) uint64 {
|
||||||
if len(ip) == 0 {
|
if len(ip) == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user