Skip to content

Commit

Permalink
feat: set region always to global
Browse files Browse the repository at this point in the history
  • Loading branch information
JingYiJun committed Apr 10, 2024
1 parent ca0c2f8 commit c4b5f81
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions apis/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ func GetConfig(c *fiber.Ctx) error {
return err
}

var region string
ok, err := IsInChina(GetRealIP(c))
if err != nil {
return err
}
if ok {
region = "cn"
} else {
region = "global"
}
//var region string
//ok, err := IsInChina(GetRealIP(c))
//if err != nil {
// return err
//}
//if ok {
// region = "cn"
//} else {
// region = "global"
//}
var region = "global"

return c.JSON(Response{
Region: region,
Expand Down

0 comments on commit c4b5f81

Please sign in to comment.