2022-05-09 06:48:28 +00:00
|
|
|
package db
|
|
|
|
|
2022-05-24 07:16:48 +00:00
|
|
|
import (
|
|
|
|
"github.com/zu1k/nali/pkg/cdn"
|
|
|
|
"github.com/zu1k/nali/pkg/ip2region"
|
2022-07-21 02:36:47 +00:00
|
|
|
"github.com/zu1k/nali/pkg/qqwry"
|
2022-05-24 07:16:48 +00:00
|
|
|
)
|
|
|
|
|
2022-05-09 06:48:28 +00:00
|
|
|
func GetDefaultDBList() List {
|
|
|
|
return List{
|
|
|
|
&DB{
|
|
|
|
Name: "qqwry",
|
|
|
|
NameAlias: []string{
|
|
|
|
"chunzhen",
|
|
|
|
},
|
2022-07-21 02:36:47 +00:00
|
|
|
Format: FormatQQWry,
|
|
|
|
File: "qqwry.dat",
|
|
|
|
Languages: LanguagesZH,
|
|
|
|
Types: TypesIPv4,
|
|
|
|
DownloadUrls: qqwry.DownloadUrls,
|
2022-05-09 06:48:28 +00:00
|
|
|
},
|
|
|
|
&DB{
|
|
|
|
Name: "zxipv6wry",
|
|
|
|
NameAlias: []string{
|
|
|
|
"zxipv6",
|
|
|
|
"zx",
|
|
|
|
},
|
|
|
|
Format: FormatZXIPv6Wry,
|
|
|
|
File: "zxipv6wry.db",
|
|
|
|
Languages: LanguagesZH,
|
|
|
|
Types: TypesIPv6,
|
|
|
|
},
|
2022-05-09 07:17:11 +00:00
|
|
|
&DB{
|
|
|
|
Name: "geoip",
|
|
|
|
NameAlias: []string{
|
|
|
|
"geoip2",
|
|
|
|
"geolite",
|
|
|
|
"geolite2",
|
|
|
|
},
|
|
|
|
Format: FormatMMDB,
|
|
|
|
File: "GeoLite2-City.mmdb",
|
|
|
|
Languages: LanguagesAll,
|
|
|
|
Types: TypesIP,
|
|
|
|
},
|
|
|
|
&DB{
|
|
|
|
Name: "dbip",
|
|
|
|
NameAlias: []string{
|
|
|
|
"db-ip",
|
|
|
|
},
|
|
|
|
Format: FormatMMDB,
|
|
|
|
File: "dbip.mmdb",
|
|
|
|
Languages: LanguagesAll,
|
|
|
|
Types: TypesIP,
|
|
|
|
},
|
2022-05-09 06:48:28 +00:00
|
|
|
&DB{
|
|
|
|
Name: "ipip",
|
|
|
|
Format: FormatIPIP,
|
|
|
|
File: "ipipfree.ipdb",
|
|
|
|
Languages: LanguagesZH,
|
|
|
|
Types: TypesIP,
|
|
|
|
},
|
|
|
|
&DB{
|
|
|
|
Name: "ip2region",
|
|
|
|
NameAlias: []string{
|
|
|
|
"i2r",
|
|
|
|
},
|
2022-05-24 07:16:48 +00:00
|
|
|
Format: FormatIP2Region,
|
2022-06-27 09:03:09 +00:00
|
|
|
File: "ip2region.xdb",
|
2022-05-24 07:16:48 +00:00
|
|
|
Languages: LanguagesZH,
|
|
|
|
Types: TypesIPv4,
|
|
|
|
DownloadUrls: ip2region.DownloadUrls,
|
2022-05-09 06:48:28 +00:00
|
|
|
},
|
2022-05-17 03:22:30 +00:00
|
|
|
&DB{
|
2022-05-17 05:35:48 +00:00
|
|
|
Name: "ip2location",
|
2022-05-17 03:22:30 +00:00
|
|
|
Format: FormatIP2Location,
|
|
|
|
File: "IP2LOCATION-LITE-DB3.IPV6.BIN",
|
2022-05-17 05:50:30 +00:00
|
|
|
Languages: LanguagesEN,
|
2022-05-17 03:22:30 +00:00
|
|
|
Types: TypesIP,
|
|
|
|
},
|
2022-05-09 06:48:28 +00:00
|
|
|
|
|
|
|
&DB{
|
2022-05-24 07:16:48 +00:00
|
|
|
Name: "cdn",
|
2022-06-29 09:00:34 +00:00
|
|
|
Format: FormatCDNYml,
|
2022-05-24 07:16:48 +00:00
|
|
|
File: "cdn.yml",
|
|
|
|
Languages: LanguagesZH,
|
|
|
|
Types: TypesCDN,
|
|
|
|
DownloadUrls: cdn.DownloadUrls,
|
2022-05-09 06:48:28 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|