MetaCubeX / mihomo

A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
https://wiki.metacubex.one
MIT License
16.87k stars 2.67k forks source link

[Bug] 逻辑规则未按预期 #1230

Closed dycwuxing closed 7 months ago

dycwuxing commented 7 months ago

Verify steps

Mihomo version

alpha-89a097f

What OS are you seeing the problem on?

macOS, Windows, Linux

Mihomo config

rules:
- AND,((IP-CIDR,0.0.0.0/0),(NOT,((GEOIP,cn)))),🐟漏网国外
- NOT,((GEOIP,cn)),🐟漏网国外

Mihomo log

log:
2024-04-29 12:10:45 INFO - [clash]: time="2024-04-29T12:10:45.2649388+08:00" level=debug msg="[DNS] resolve www.myip.com from https://9.9.9.11:443/dns-query"
2024-04-29 12:10:45 INFO - [clash]: time="2024-04-29T12:10:45.2649388+08:00" level=debug msg="[DNS] resolve www.myip.com from https://8.8.8.8:443/dns-query"
2024-04-29 12:10:45 INFO - [clash]: time="2024-04-29T12:10:45.5039278+08:00" level=debug msg="[DNS] www.myip.com --> [172.67.75.163 104.26.8.59 104.26.9.59] A from https://8.8.8.8:443/dns-query"
2024-04-29 12:10:45 INFO - [clash]: time="2024-04-29T12:10:45.5039278+08:00" level=debug msg="[DNS] www.myip.com --> 104.26.8.59"
2024-04-29 12:10:46 INFO - [clash]: time="2024-04-29T12:10:46.1327608+08:00" level=info msg="[TCP] 127.0.0.1:57210(msedge.exe) --> www.myip.com:443 match AND(((IPCIDR,0.0.0.0/0) && (NOT,(!(GeoIP,cn))))) using 🐟漏网国外[美国 01]"

Description

企业微信截图_17143641272977 从面板来看,逻辑规则是生效的,但是我的理解,如果这个是IP规则才会命中,myip这个域名在访问的时候,应该命中下一条非cn的规则才对 请大佬帮忙看看,感谢

xishang0128 commented 7 months ago

这是预期行为,而不是bug,请自行了解clash系路由匹配原理