chore: Update qqwry.date download url

Signed-off-by: zu1k <i@zu1k.com>
This commit is contained in:
zu1k 2022-07-21 10:36:47 +08:00
parent 12a5ac2b87
commit c2a1ad8565
2 changed files with 10 additions and 4 deletions

View File

@ -3,6 +3,7 @@ package db
import ( import (
"github.com/zu1k/nali/pkg/cdn" "github.com/zu1k/nali/pkg/cdn"
"github.com/zu1k/nali/pkg/ip2region" "github.com/zu1k/nali/pkg/ip2region"
"github.com/zu1k/nali/pkg/qqwry"
) )
func GetDefaultDBList() List { func GetDefaultDBList() List {
@ -16,6 +17,7 @@ func GetDefaultDBList() List {
File: "qqwry.dat", File: "qqwry.dat",
Languages: LanguagesZH, Languages: LanguagesZH,
Types: TypesIPv4, Types: TypesIPv4,
DownloadUrls: qqwry.DownloadUrls,
}, },
&DB{ &DB{
Name: "zxipv6wry", Name: "zxipv6wry",

View File

@ -11,6 +11,10 @@ import (
"github.com/zu1k/nali/pkg/common" "github.com/zu1k/nali/pkg/common"
) )
var DownloadUrls = []string{
"https://99wry.cf/qqwry.dat",
}
func Download(filePath ...string) (data []byte, err error) { func Download(filePath ...string) (data []byte, err error) {
fmt.Println("此方式更新的 QQWry 数据库版本过旧请手动下载最新版纯真免费IP库: https://www.cz88.net/help") fmt.Println("此方式更新的 QQWry 数据库版本过旧请手动下载最新版纯真免费IP库: https://www.cz88.net/help")