1
0
mirror of https://github.com/zu1k/nali.git synced 2025-02-02 18:32:43 +08:00

fix: ip2location language only support en

Signed-off-by: zu1k <i@zu1k.com>
This commit is contained in:
zu1k 2022-05-17 13:50:30 +08:00
parent 4a386fba76
commit 7a83567038
No known key found for this signature in database
GPG Key ID: AE381A8FB1EF2CC8
2 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ func GetDefaultDBList() List {
Name: "ip2location", Name: "ip2location",
Format: FormatIP2Location, Format: FormatIP2Location,
File: "IP2LOCATION-LITE-DB3.IPV6.BIN", File: "IP2LOCATION-LITE-DB3.IPV6.BIN",
Languages: LanguagesAll, Languages: LanguagesEN,
Types: TypesIP, Types: TypesIP,
}, },

View File

@ -74,6 +74,7 @@ const (
var ( var (
LanguagesAll = []string{"ALL"} LanguagesAll = []string{"ALL"}
LanguagesZH = []string{"zh-CN"} LanguagesZH = []string{"zh-CN"}
LanguagesEN = []string{"en"}
) )
type Type string type Type string