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

gui-config.json 中无法保存 geositeSha256sumUrl 键值,导致自定义 geosite 来源时,因为 sha256 无法匹配更新失败 #3024

Closed
IceCodeNew opened this issue Nov 10, 2020 · 2 comments · Fixed by #3026
Assignees
Milestone

Comments

@IceCodeNew
Copy link

简要描述问题

gui-config.json 中无法保存 geositeSha256sumUrl 键值,导致自定义 geosite 来源时,因为 sha256 无法匹配更新失败。

环境

  • Shadowsocks客户端版本:4.3.2.0
  • 操作系统版本:Windows 10
  • .NET版本:4.8

操作步骤

  1. 在源代码中搜索关键词找到 gui-config.json 中应当对应的键值对:

    string geositeUrl = GEOSITE_URL;
    string geositeSha256sumUrl = GEOSITE_SHA256SUM_URL;

  2. 删除 gui-config.json 中所有同名的键值对,手动添加如下键值对:

  "isVerboseLogging": true,
  "isIPv6Enabled": false,
  "generateLegacyUrl": false,
+ "geositeUrl": "https://github.com/IceCodeNew/v2ray-rules-dat/raw/release/geosite.dat",
+ "geositeSha256sumUrl": "https://github.com/IceCodeNew/v2ray-rules-dat/raw/release/geosite.dat.sha256sum",
  "geositeDirectGroups": [
    "apa",
    "cambridge",
  1. 退出客户端。删除 ss_win_temp 目录;删除 pac.txt 文件。

  2. 重新启动客户端,可以观察到geositeSha256sumUrl 键值对被自动删除。

  3. 尝试更新 pac 文件,提示 sha256 哈希不匹配。
    image

期望的结果

gui-config.json 增加 geositeSha256sumUrl 键值对供用户设置。自定义 geosite 来源后可以正常更新 pac 文件。

实际结果

gui-config.json 没有保留用户对 geositeSha256sumUrl 键值对的设置。自定义 geosite 来源后因为 sha256 missmatch 无法更新 pac 文件。

配置文件和日志文件(请隐去敏感信息)

相关配置已在上方给出。

@database64128
Copy link
Contributor

Thank you for the bug report! Please try the build artifacts and see if it's fixed. https://ci.appveyor.com/project/celeron533/shadowsocks-windows/builds/36287172/job/yikqg30qvf1gqpsf/artifacts

@IceCodeNew
Copy link
Author

IceCodeNew commented Nov 13, 2020

Thank you for the bug report! Please try the build artifacts and see if it's fixed. ci.appveyor.com/project/celeron533/shadowsocks-windows/builds/36287172/job/yikqg30qvf1gqpsf/artifacts

I can confirm this problem has been fixed in #3026. Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants