diff --git a/internal/db/default.go b/internal/db/default.go index fd6297e..cb259a6 100644 --- a/internal/db/default.go +++ b/internal/db/default.go @@ -3,6 +3,7 @@ package db import ( "github.com/zu1k/nali/pkg/cdn" "github.com/zu1k/nali/pkg/ip2region" + "github.com/zu1k/nali/pkg/qqwry" ) func GetDefaultDBList() List { @@ -12,10 +13,11 @@ func GetDefaultDBList() List { NameAlias: []string{ "chunzhen", }, - Format: FormatQQWry, - File: "qqwry.dat", - Languages: LanguagesZH, - Types: TypesIPv4, + Format: FormatQQWry, + File: "qqwry.dat", + Languages: LanguagesZH, + Types: TypesIPv4, + DownloadUrls: qqwry.DownloadUrls, }, &DB{ Name: "zxipv6wry", diff --git a/pkg/qqwry/update.go b/pkg/qqwry/update.go index 48cc538..cc97248 100644 --- a/pkg/qqwry/update.go +++ b/pkg/qqwry/update.go @@ -11,6 +11,10 @@ import ( "github.com/zu1k/nali/pkg/common" ) +var DownloadUrls = []string{ + "https://99wry.cf/qqwry.dat", +} + func Download(filePath ...string) (data []byte, err error) { fmt.Println("此方式更新的 QQWry 数据库版本过旧,请手动下载最新版纯真免费IP库: https://www.cz88.net/help")