Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加一个IP归属地显示 #989

Closed
imjason opened this issue May 3, 2022 · 7 comments
Closed

添加一个IP归属地显示 #989

imjason opened this issue May 3, 2022 · 7 comments
Labels
discussion Question or dicussion enhancement New feature or request

Comments

@imjason
Copy link

imjason commented May 3, 2022

功能概述 | Describe the feature

由于国家出台了神奇的规定,我们有木有必要跟风添加一个呢

@imjason imjason added discussion Question or dicussion enhancement New feature or request labels May 3, 2022
@imjason imjason changed the title 添加一个IP归宿地显示 添加一个IP归属地显示 May 3, 2022
@lizheming
Copy link
Collaborator

已增加,可以更新到 @waline/vercel@1.16.0, @waline/client@2.2.0 体验一下,默认开启,不想使用的话可以使用 DISABLE_REGION 关闭。

@ma-wenqian
Copy link

想问一下,为什么我开启了还是不显示ip位置呀

@lizheming
Copy link
Collaborator

@ma-wenqian 有添加 DISABLE_REGION 么,这个是关闭 IP 归属地的功能的开关,配置了会不展示

@ma-wenqian
Copy link

@ma-wenqian 有添加 DISABLE_REGION 么,这个是关闭 IP 归属地的功能的开关,配置了会不展示

我一开始没有设置,没有显示。然后去添加了这个参数,false,还是没有

@lizheming
Copy link
Collaborator

@ma-wenqian 去掉应该就有了

@iDvel
Copy link

iDvel commented Jun 2, 2022

@lizheming 请问如何正确地关闭这个功能呢?
我在 Vercel 中添加环境变量 DISABLE_REGION,然后重新部署应该就可以了吧。
试过留空或者写上 true,好像都不行,还是显示 IP 归属地。

@iDvel
Copy link

iDvel commented Jun 2, 2022

@lizheming 请问如何正确地关闭这个功能呢? 我在 Vercel 中添加环境变量 DISABLE_REGION,然后重新部署应该就可以了吧。 试过留空或者写上 true,好像都不行,还是显示 IP 归属地。

呃,我知道啦,管理员默认就是显示的,不登录、隐私窗口或换个浏览器是正常的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Question or dicussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants