Skip to content

Commit

Permalink
chore: Update qqwry.date download url
Browse files Browse the repository at this point in the history
Signed-off-by: zu1k <i@zu1k.com>
  • Loading branch information
zu1k committed Jul 21, 2022
1 parent 09602d7 commit ecf96b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 6 additions & 4 deletions internal/db/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions pkg/qqwry/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit ecf96b3

Please sign in to comment.