Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Bug]: sing-box 下使用 domain_keyword 似乎会生成错误的域名。 #5129

Closed
2 tasks done
IEXPECTATION opened this issue May 20, 2024 · 2 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@IEXPECTATION
Copy link

预期情况

生成正确的域名

实际情况

生成的域名带有 domain_keyword。我理解应该是不带 domain_keyword 的。
image
随便还想问一下,新版的 V6.45 点更新了,不会弹出已经是最新版了弹窗是改了吗?

复现方法

添加路由规则
image

日志信息

额外信息

No response

我确认已更新至最新版本

我确认已查询历史issues

@IEXPECTATION IEXPECTATION added the bug Something isn't working label May 20, 2024
@2dust
Copy link
Owner

2dust commented May 21, 2024

一个数组,数组每一项是一个域名的匹配。有以下几种形式:

纯字符串:当此字符串匹配目标域名中任意部分,该规则生效。比如 "sina.com" 可以匹配 "sina.com"、"sina.com.cn" 和 "www.sina.com",但不匹配 "sina.cn"。
正则表达式:由 "regexp:" 开始,余下部分是一个正则表达式。当此正则表达式匹配目标域名时,该规则生效。例如 "regexp:\.goo.*\.com$" 匹配 "www.google.com" 或 "fonts.googleapis.com",但不匹配 "google.com"。
子域名(推荐):由 "domain:" 开始,余下部分是一个域名。当此域名是目标域名或其子域名时,该规则生效。例如 "domain:xray.com" 匹配 "www.xray.com"、"xray.com",但不匹配 "wxray.com"。
完整匹配:由 "full:" 开始,余下部分是一个域名。当此域名完整匹配目标域名时,该规则生效。例如 "full:xray.com" 匹配 "xray.com" 但不匹配 "www.xray.com"。
预定义域名列表:由 "geosite:" 开头,余下部分是一个名称,如 geosite:google 或者 geosite:cn。名称及域名列表参考 预定义域名列表
从文件中加载域名:形如 "ext:file:tag",必须以 ext:(小写)开头,后面跟文件名和标签,文件存放在 资源目录 中,文件格式与 geosite.dat 相同,标签必须在文件中存在。

@2dust
Copy link
Owner

2dust commented May 21, 2024

按照xray的规则写,会自动转换到sing-box
domain_keyword不需要写,直接写bing.com

Repository owner locked and limited conversation to collaborators May 21, 2024
@2dust 2dust converted this issue into discussion #5133 May 21, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants