-
Notifications
You must be signed in to change notification settings - Fork 954
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
Fix: trim attribute prefix "@" character #79
Conversation
Have tested on my local V2Ray and it works. |
@EpLiar |
I use manual compile and your GitHub Action. |
Passed. I change |
I think you should quit the program, clear DNS cache, and then reopen it. |
In my environment, if {
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"223.5.5.5",
"114.114.114.114",
"localhost"
]
},
"inbounds": [
{
"port": "1080",
"protocol": "http",
"settings": {
},
"tag": "http"
},
{
"port": "1081",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true
},
"tag": "socks"
}
],
"log": {
"loglevel": "warning"
},
"outbounds": [
{
"protocol": "freedom",
"settings": {
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {
},
"tag": "blocked"
}
],
"policy": {
},
"reverse": {
},
"routing": {
"settings": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"domain": null,
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "direct",
"port": null,
"type": "field"
},
{
"domain": [
"geosite:cn",
"geosite:nike",
"geosite:apple"
],
"outboundTag": "direct",
"type": "field"
},
{
"domain": [
"geosite:baidu-ads@ads"
],
"outboundTag": "blocked",
"type": "field"
}
]
},
"strategy": "rules"
},
"stats": {
},
"transport": {
}
}
|
block rules should be in front of direct & proxy rules. |
Okay. |
Super! Now we can use attribute as we want. |
This commit fixes the
@attr
function.