desc for domain name match issue

This commit is contained in:
ElonJunior 2024-05-31 12:22:21 +08:00
parent 267036231e
commit 01d04b2ee1
2 changed files with 12 additions and 3 deletions

View File

@ -5,6 +5,14 @@
- [Chocolate4U-Iran](https://github.com/Chocolate4U/Iran-sing-box-rules/tree/rule-set?tab=readme-ov-file) - [Chocolate4U-Iran](https://github.com/Chocolate4U/Iran-sing-box-rules/tree/rule-set?tab=readme-ov-file)
- [ACL4SSR](https://github.com/ACL4SSR/ACL4SSR) - [ACL4SSR](https://github.com/ACL4SSR/ACL4SSR)
## Welcome to submit your preferred rule-set
- [submit your preferred rule-set](https://github.com/KaringX/karing-ruleset/issues/2)
- [欢迎提交你中意的规则集](https://github.com/KaringX/karing-ruleset/issues/1)
## Description
- karing 1.0.23.263 and later versions will default to including all rules from this repository.
- Please use the latest version of sing-box, as versions before 1.9 had issues with domain name matching. For example, 'google.com' was incorrectly matching 'le.com'."
- [Improve domain suffix match behavior](https://github.com/SagerNet/sing/commit/4d96f15eca075f4b5535053304d54812fdfa96e0)
# GeoIP/GeoSite # GeoIP/GeoSite
- The source files of Iran come from **Chocolate4U** - The source files of Iran come from **Chocolate4U**

View File

@ -60,10 +60,11 @@ def converto_json(src_file: str, out_path: str):
row = line.split(",") row = line.split(",")
if len(row) >= 2: if len(row) >= 2:
rule, cont = row[0].upper(), row[1].strip() rule, cont = row[0].upper(), row[1].strip()
if 'le.com' == cont: # if 'le.com' == cont:
deug_log(f"row:{row} drop le.com/match google.com") # deug_log(f"row:{row} drop le.com/match google.com")
# rule = 'PASS'
elif rule in MAP_RULES_KEY_DICT: if rule in MAP_RULES_KEY_DICT:
rkey = MAP_RULES_KEY_DICT[rule] rkey = MAP_RULES_KEY_DICT[rule]
if rkey in content['rules'][0]: if rkey in content['rules'][0]:
content['rules'][0][rkey].append(cont) content['rules'][0][rkey].append(cont)