From 01d04b2ee16e2bd1ad15d28fbaaf6e9a22425145 Mon Sep 17 00:00:00 2001 From: ElonJunior Date: Fri, 31 May 2024 12:22:21 +0800 Subject: [PATCH] desc for domain name match issue --- README.md | 8 ++++++++ resouces/convert_json.py | 7 ++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8f375480..db1a2dcf 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,14 @@ - [Chocolate4U-Iran](https://github.com/Chocolate4U/Iran-sing-box-rules/tree/rule-set?tab=readme-ov-file) - [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 - The source files of Iran come from **Chocolate4U** diff --git a/resouces/convert_json.py b/resouces/convert_json.py index a725088c..1dfac4ca 100755 --- a/resouces/convert_json.py +++ b/resouces/convert_json.py @@ -60,10 +60,11 @@ def converto_json(src_file: str, out_path: str): row = line.split(",") if len(row) >= 2: rule, cont = row[0].upper(), row[1].strip() - if 'le.com' == cont: - deug_log(f"row:{row} drop le.com/match google.com") + # if 'le.com' == cont: + # 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] if rkey in content['rules'][0]: content['rules'][0][rkey].append(cont)