halo-dev / halo

强大易用的开源建站工具。
https://www.halo.run
GNU General Public License v3.0
33.92k stars 9.68k forks source link

浏览器指纹 #6949

Open Asteri5m opened 5 days ago

Asteri5m commented 5 days ago

系统信息

使用的哪种方式运行?

Docker Compose

发生了什么?

浏览器的指纹识别不准确:我win11的电脑识别为win10 。。。 Image

复现步骤

登录复现

相关日志输出

No response

附加信息

No response

ruibaby commented 5 days ago

目前应该是完全使用 User Agent 来识别设备信息的,并且 Windows 11 的 UA 信息就是 Windows NT 10.0,如果要精确识别,可能需要做特殊处理,详见:

  1. https://learn.microsoft.com/zh-cn/microsoft-edge/web-platform/how-to-detect-win11
  2. https://stackoverflow.com/questions/68614445/how-to-detect-windows-11-from-user-agent

我不确定针对此做适配是否有必要,但欢迎提交 PR。

/good-first-issue /kind improvement /area core

f2c-ci-robot[bot] commented 5 days ago

@ruibaby: This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-good-first-issue command.

In response to [this](https://github.com/halo-dev/halo/issues/6949): >目前应该是完全使用 User Agent 来识别设备信息的,并且 Windows 11 的 UA 信息就是 Windows NT 10.0,如果要精确识别,可能需要做特殊处理,详见: > >1. https://learn.microsoft.com/zh-cn/microsoft-edge/web-platform/how-to-detect-win11 >2. https://stackoverflow.com/questions/68614445/how-to-detect-windows-11-from-user-agent > >我不确定针对此做适配是否有必要,但欢迎提交 PR。 > >/good-first-issue >/kind improvement >/area core Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.