-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
适配 sing-box 1.11 新版配置 #88
Open
w5khill
wants to merge
7
commits into
7Sageer:main
Choose a base branch
from
w5khill:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+156
−153
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
我看到你提到了第一次下载规则集容易报错的问题,我尝试进行了一些修改: |
也许应该将 "download_detour": "⚡ 自动选择" |
确实可以改了,昨天忘记了 |
这个看上游讨论吧,我觉得影响最大的就是 rule actions 了,会导致 selector 没有了 REJECT,可以用一些繁琐的办法达到类似效果 {
"$schema": "https://gist.githubusercontent.com/artiga033/fea992d95ad44dc8d024b229223b1002/raw/83c676c1ec9f37af2bce0505da396b5444b30032/sing-box.schema.json",
"inbounds": [
{ "type": "mixed", "listen": "0.0.0.0", "listen_port": 2080 },
{ "type": "socks", "listen": "127.0.0.1", "listen_port": 2081, "tag": "REJECT-in" }
],
"outbounds": [
{
"type": "direct",
"tag": "DIRECT"
},
{ "type": "socks", "server": "127.0.0.1", "server_port": 2081, "tag": "REJECT" },
{
"type": "selector",
"tag": "🚀 节点选择",
"outbounds": ["REJECT", "DIRECT"]
}
],
"route": {
"auto_detect_interface": true,
"final": "🚀 节点选择",
"rules": [
{
"inbound": ["REJECT-in"],
"action": "reject"
},
{
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
}
]
},
"experimental": {
"clash_api": {
"external_controller": "127.0.0.1:9090",
"external_ui": "dashboard"
}
}
}
|
搞这么复杂有必要么…想 REJECT 的直接写死就好了,或者像我这里做成 clash mode,也相当于可选择了… |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
广告拦截分组被我删除了,新版应该做不到在分组里选择拒绝广告。我做成了 clash_mode 方式拦截广告。