SagerNet / serenity

The configuration generator for sing-box
https://serenity.sagernet.org
Other
176 stars 36 forks source link

[Bug] Generated RuleSet Download URL Does Not Match Documentation #31

Open aac6fef opened 1 month ago

aac6fef commented 1 month ago

According to the documentation, the following configuration:

{
  "type": "github",
  "repository": "SagerNet/sing-geosite",
  "path": "rule-set",
  "prefix": "geosite-",
  "rule_set": [
    "apple",
    "microsoft",
    "openai"
  ]
}

should generate something like:

{
  "type": "remote",
  "tag": "geosite-apple",
  "format": "binary",
  "url": "https://testingcf.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-apple.srs",
  "download_detour": "direct"
}

However, the actual output is:

{
  "type": "remote",
  "tag": "geosite-apple",
  "format": "binary",
  "url": "https://testingcf.jsdelivr.net/gh/SagerNet/sing-geosite@rule-setapple.srs",
  "download_detour": "direct"
}
john-jane-doe commented 3 weeks ago

We encountered the same problem, and finally figured out that this section should be configured as:

{
  "type": "github",
  "repository": "SagerNet/sing-geosite",
  "path": "rule-set/geo-site-",
  "prefix": "geosite-",
  "rule_set": [
    "apple",
    "microsoft",
    "openai"
  ]
}