300eb8b12a
chore: rebuild rule parsing code
2025-07-14 10:35:33 +08:00
2b84dd3618
fix: regex in logic rules
...
https://github.com/MetaCubeX/mihomo/issues/2150
2025-07-07 16:16:16 +08:00
241ae92bce
feat: support DOMAIN-WILDCARD
rule ( #2124 )
...
only support asterisk(*) and question mark(?)
2025-06-27 16:35:55 +08:00
5b975275f5
fix: incorrect checking of strings.Split return value
...
strings.Split will never return a slice of length 0 if sep is not empty, so any code that checks if the return value is of length 0 is incorrect and useless.
2025-06-25 16:20:37 +08:00
ae7967f662
chore: the resolve and findProcess behaviors of Logic and SubRules follow the order and needs of the internal rules
2025-06-10 20:11:50 +08:00
5a9ad0ed3c
chore: code cleanup
Trigger CMFA Update / trigger-CMFA-update (push) Waiting to run
2024-12-19 09:29:17 +08:00
80e4eaad14
fix: process IPv6 Link-Local address ( #1657 )
Trigger CMFA Update / trigger-CMFA-update (push) Failing after 8s
2024-11-18 10:34:43 +08:00
a86c562852
chore: Increase support for other format of ASN
Trigger CMFA Update / trigger-CMFA-update (push) Failing after 30s
2024-11-04 19:31:43 +08:00
7c8f451892
chore: cleanup geo internal code
2024-09-09 16:08:48 +08:00
38fd37108b
feat: GEOIP
,IP-ASN
,IP-CIDR
,IP-CIDR6
and IP-SUFFIX
in rules support ,src
option
...
keep the same writing style as `RULE-SET`
2024-08-30 00:04:59 +08:00
763a127287
feat: RULE-SET
in rules support ,src
option
...
should only be used with `ipcidr` behavior
2024-08-29 23:49:16 +08:00
a96f72ade4
fix: geoip wrong matching logic in fallback-filter
...
https://github.com/MetaCubeX/mihomo/issues/1478
2024-08-29 22:00:55 +08:00
4fecf68b8b
chore: add sourceGeoIP
and sourceIPASN
to metadata
2024-08-28 12:25:45 +08:00
4fedfc47b0
chore: update geo unneeded reload whole config
2024-08-16 09:19:18 +08:00
09be5cbc99
feat: tun support auto-redirect
, route-address-set
and route-exclude-address-set
2024-06-17 22:04:51 +08:00
1bc3c16b59
feat: add PROCESS-NAME-REGEX
and PROCESS-PATH-REGEX
2024-05-15 10:44:56 +08:00
3b472f786e
chore: Add source matching for ip type rules
2024-04-01 18:16:34 +08:00
f3743fc7f9
chore: Introducing Punycode conversion for domain matching
2024-04-01 16:21:34 +08:00
44d8a14629
feat: add IP-ASN
rule
2024-03-12 03:14:25 +08:00
90d0ef033b
chore: Check regex rule expression when initializing
2024-03-08 22:52:36 +08:00
234a4bfc93
feat: add DOMAIN-REGEX
rule
2024-03-07 23:32:07 +08:00
d27340867f
chore: Add GeoIP result to metadata
2024-03-02 17:41:04 +08:00
c1f0ed18ef
chore: dscp support range too
2024-01-20 11:00:29 +08:00
0e1bdb07d4
chore: rewrite IntRanges constructor
2024-01-20 11:00:06 +08:00
25d6ad220d
feat: add DSCP rule for Tproxy UDP packets ( #996 )
...
* feat: add `DSCP` rule for Tproxy UDP packets
* fix: fix compatibility issue with non_linux platform
* chore: remove redundant lines for DSCP
2024-01-20 10:19:42 +08:00
e860497c0c
chore: cleanup IPSet code
2024-01-13 11:44:02 +08:00
2bba8aa14a
feat: Add succinct matcher support for GeoSite
...
and use it by default
2023-12-17 00:01:01 +08:00
17c9d507be
chore: hello mihomo
2023-11-03 21:58:21 +08:00
bffe47a974
chore: netip.Prefix should not using pointer
2023-10-26 11:02:53 +08:00
e2e0fd4eba
chore: using uint16 for ports in Metadata
2023-08-09 13:51:02 +08:00
b0e76ec791
feat: Add Meta-geoip V0 database support
2023-07-17 10:33:20 +08:00
081e94c738
feat: Add sing-geoip database support
2023-07-14 22:28:24 +08:00
8f1475d5d0
chore: update to go1.21rc2, drop support for go1.19
2023-07-02 09:59:18 +08:00
3ef81afc76
[Feature] Proxy stores delay data of different URLs. And supports specifying different test URLs and expected statue by group ( #588 )
...
Co-authored-by: Larvan2 <78135608+Larvan2@users.noreply.github.com >
Co-authored-by: wwqgtxx <wwqgtxx@gmail.com >
2023-06-04 11:51:30 +08:00
9c2972afb0
chore: add IN-USER
and IN-NAME
rules
2023-05-28 17:19:57 +08:00
cfd03a99c2
feat: nameserver-policy
support use rule-providers and reduce domain-set memory
2023-04-01 11:53:39 +08:00
cd7d9fc4f5
fix: socks5 serialize error #376
2023-02-18 17:18:58 +08:00
096bb8d439
feat: add override-destination for sniffer
2023-01-23 14:08:11 +08:00
f96bf65557
chore: Refine process code
2023-01-14 16:16:59 +08:00
e9a7e104c0
fix: geoip mmdb/geodata init
2023-01-09 21:12:13 +08:00
d478728cb7
fix: geosite match
2022-11-21 10:33:42 +08:00
dc3e144b6a
Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha
2022-11-12 20:43:48 +08:00
b2d7149a95
chore: support IN-PORT rule
2022-11-11 23:36:06 +08:00
6dadc2357a
chore: remove AddrType on Metadata
2022-11-11 09:19:50 +08:00
9b89ff9f2d
feat: support sub-rule, eg.
...
rules:
- SUB-RULE,(AND,((NETWORK,TCP),(DOMAIN-KEYWORD,google))),TEST2
- SUB-RULE,(GEOIP,!CN),TEST1
- MATCH,DIRECT
sub-rules:
TEST2:
- MATCH,Proxy
TEST1:
- RULE-SET,Local,DIRECT,no-resolve
- GEOSITE,CN,Domestic
- GEOIP,CN,Domestic
- MATCH,Proxy
2022-09-06 17:30:35 +08:00
9317dd610b
chore: Skip initial "lan" rules that load geoip
2022-08-17 00:33:03 +08:00
473d0f74bd
fix: remove extra and the actual original IDNA domain name is no longer stored, for reduce memory
2022-08-11 21:50:16 +08:00
c1a99b9be4
fix: IDNA domain match
2022-06-18 18:13:54 +08:00
be298cfa16
refactor: finding process and uid should to find with match process or uid rule, reduce memory allocation
2022-06-14 22:52:56 +08:00
130a3a261d
refactor: clear linkname,reduce cycle dependencies,transport init geosite function
2022-06-10 13:38:19 +08:00