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

[Feature] clash的RULE-SET 中使用IPCIDR的时候,加上no-resolve #679

Closed
3 tasks done
Energetic3906 opened this issue Nov 29, 2023 · 0 comments
Closed
3 tasks done

Comments

@Energetic3906
Copy link

verify

  • 我已经仔细阅读项目文档,确认现有功能无法解决我的需求
  • 我已经检索过现有issue,确认与现有issue的内容并不重复
  • 我已经尝试自行解决,确认自己没有能力解决

功能描述

实现这样的效果: RULE-SET,select_ipcidr,𝐏𝐫𝐨𝐱𝐲,no-resolve
避免进行DNS解析。

可能的解决方案

在 src/generator/template/templates.cpp 的 458 行,将

rules.emplace_back("RULE-SET," + rule_name + "_ipcidr," + rule_group);

修改为:

rules.emplace_back("RULE-SET," + rule_name + "_ipcidr," + rule_group + ",no-resolve");

@Energetic3906 Energetic3906 changed the title clash的RULE-SET 中使用IPCIDR的时候,加上no-resolve [Feature] clash的RULE-SET 中使用IPCIDR的时候,加上no-resolve Nov 29, 2023
tindy2013 added a commit that referenced this issue Dec 5, 2023
Add no-resolve to generated Clash rule-set if exists (#679).
Do not set CURLOPT_USERAGENT if User-Agent header is provided.
Print curl verbose logs with standard format.
Change thread id in logs to thread name.
Optimize generation of rule contents.
littleneko pushed a commit to littleneko/subconverter that referenced this issue Feb 26, 2024
Add no-resolve to generated Clash rule-set if exists (tindy2013#679).
Do not set CURLOPT_USERAGENT if User-Agent header is provided.
Print curl verbose logs with standard format.
Change thread id in logs to thread name.
Optimize generation of rule contents.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant