mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-03 22:06:37 +08:00
IP名单新增IPv6和所有IP两种类型
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"github.com/TeaOSLab/EdgeNode/internal/events"
|
||||
"github.com/TeaOSLab/EdgeNode/internal/remotelogs"
|
||||
"github.com/TeaOSLab/EdgeNode/internal/rpc"
|
||||
"github.com/TeaOSLab/EdgeNode/internal/utils"
|
||||
"github.com/iwind/TeaGo/Tea"
|
||||
"sync"
|
||||
"time"
|
||||
@@ -123,8 +124,9 @@ func (this *IPListManager) fetch() (hasNext bool, err error) {
|
||||
}
|
||||
list.Add(&IPItem{
|
||||
Id: item.Id,
|
||||
IPFrom: IP2Long(item.IpFrom),
|
||||
IPTo: IP2Long(item.IpTo),
|
||||
Type: item.Type,
|
||||
IPFrom: utils.IP2Long(item.IpFrom),
|
||||
IPTo: utils.IP2Long(item.IpTo),
|
||||
ExpiredAt: item.ExpiredAt,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user