Chore: use v2ray v5

This commit is contained in:
Loyalsoldier committed 2022-03-25 17:23:17 +08:00
1 parent d54c173659
commit 410d519b0f
3 files changed
+48 -65

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ import (
"strconv"
"strings"
"github.com/v2fly/v2ray-core/v4/app/router"
router "github.com/v2fly/v2ray-core/v5/app/router/routercommon"
"google.golang.org/protobuf/proto"
)
@@ -67,7 +67,7 @@ func (l *ParsedList) toProto() (*router.GeoSite, error) {
switch entry.Type {
case "domain":
site.Domain = append(site.Domain, &router.Domain{
Type: router.Domain_Domain,
Type: router.Domain_RootDomain,
Value: entry.Value,
Attribute: entry.Attrs,
})