Skip to content

Commit

Permalink
fix: ip2location language only support en
Browse files Browse the repository at this point in the history
Signed-off-by: zu1k <[email protected]>
  • Loading branch information
zu1k committed May 17, 2022
1 parent 4a386fb commit 7a83567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func GetDefaultDBList() List {
Name: "ip2location",
Format: FormatIP2Location,
File: "IP2LOCATION-LITE-DB3.IPV6.BIN",
Languages: LanguagesAll,
Languages: LanguagesEN,
Types: TypesIP,
},

Expand Down
1 change: 1 addition & 0 deletions internal/db/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const (
var (
LanguagesAll = []string{"ALL"}
LanguagesZH = []string{"zh-CN"}
LanguagesEN = []string{"en"}
)

type Type string
Expand Down

0 comments on commit 7a83567

Please sign in to comment.