Commit graph

62 commits

Author SHA1 Message Date
gVisor bot
1a4c0db682 chore: cleanup rules/logic code 2022-12-05 23:51:38 +08:00
gVisor bot
ae17141588 feat: add linsters 2022-12-04 13:37:14 +08:00
gVisor bot
b48387d9f4 chore: optimize DomainTrie for only one child 2022-11-30 19:42:05 +08:00
gVisor bot
537035ffa8 chore: decrease DomainTrie's memory use 2022-11-30 18:50:46 +08:00
gVisor bot
081f3f3e32 test: cleanup the test code 2022-11-30 08:58:53 +08:00
gVisor bot
add8f84da3 fix: geosite match 2022-11-21 10:33:42 +08:00
gVisor bot
722e8a6c27 Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha 2022-11-12 20:43:48 +08:00
gVisor bot
a6e05e040b chore: support IN-PORT rule 2022-11-11 23:36:06 +08:00
gVisor bot
d5d5dc2303 chore: remove AddrType on Metadata 2022-11-11 09:19:50 +08:00
gVisor bot
99a1561cd4 chore: trie.DomainTrie will not depend on zero value 2022-11-02 22:28:18 +08:00
gVisor bot
f57225e360 fix: adjust sub_rule to logic package, and fix not rule failed 2022-09-11 16:19:42 +08:00
gVisor bot
d6dc5ba19c 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
gVisor bot
6484ba4d44 chore: Skip initial "lan" rules that load geoip 2022-08-17 00:33:03 +08:00
gVisor bot
04910ba4a0 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
gVisor bot
6b95daa9ee refactor: Unified provider loading resources 2022-07-11 21:30:34 +08:00
gVisor bot
eebac64086 fix: IDNA domain match 2022-06-18 18:13:54 +08:00
gVisor bot
5e61947d84 style: rule provider strategy 2022-06-18 17:53:40 +08:00
gVisor bot
fd40911fde fix: force update provider happen loopback 2022-06-18 16:05:09 +08:00
gVisor bot
271be43a9d 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
gVisor bot
7e4d679da6 refactor: clear linkname,reduce cycle dependencies,transport init geosite function 2022-06-10 13:38:19 +08:00
gVisor bot
58e44ed27c fix: make CodeQL happy Dreamacro 2022-06-09 17:59:17 +08:00
gVisor bot
e488342451 fix: upgrade to yaml v3 2022-06-09 17:59:17 +08:00
gVisor bot
2ea93b8398 Merge branch 'dev' into Alpha 2022-06-04 19:16:56 +08:00
gVisor bot
d072d06e49 chore: 调整目录与包名一致 2022-06-04 03:25:33 +08:00
gVisor bot
542325aae4 Style: code style 2021-06-10 14:05:56 +08:00
gVisor bot
1860de9362 Style: cleanup code 2021-03-24 01:00:21 +08:00
gVisor bot
e063713174 Chore: move find process name to a single part 2020-12-17 22:17:27 +08:00
gVisor bot
a18ad955e7 Fix: PROCESS-NAME on FreeBSD 11.x (#947) 2020-09-07 17:43:34 +08:00
gVisor bot
7512851be1 Fix: potential PCB buffer overflow on bsd systems (#941) 2020-09-03 10:27:20 +08:00
gVisor bot
b2d27b9a46 Fix: static check 2020-08-25 22:36:38 +08:00
gVisor bot
6ca03f5a90 Chore: pass staticcheck 2020-08-25 22:19:59 +08:00
gVisor bot
639997db38 Chore: cache process name when resolve failed (#900) 2020-08-15 16:55:55 +08:00
gVisor bot
11a3e2b6a9 Feature: PROCESS-NAME for windows (#840) 2020-08-06 19:59:20 +08:00
gVisor bot
6387d5ee62 Feature: PROCESS-NAME for freebsd (#855) 2020-07-31 20:01:19 +08:00
gVisor bot
70732f222b Fix: update cache if a process was found (#850) 2020-07-30 17:15:06 +08:00
gVisor bot
ba07a6d0d7 Improve: simplify macOS process searching 2020-07-29 11:27:18 +08:00
gVisor bot
17a0dc479a Chore: rename NoResolveIP to ShouldResolveIP 2020-07-27 11:57:55 +08:00
gVisor bot
8987460ea0 Improve: add cache for macOS PROCESS-NAME 2020-07-22 20:35:27 +08:00
gVisor bot
2875910f01 Improve: check uid on process search & fix typo (#824) 2020-07-22 20:22:34 +08:00
gVisor bot
ebdc6564f3 Feature: add PROCESS-NAME rule for linux (#822) 2020-07-22 19:05:10 +08:00
gVisor bot
a1accd76db Feature: support PROCESS-NAME on macOS 2020-07-19 13:18:23 +08:00
gVisor bot
062fbffbae Chore: remove forward compatibility code 2020-06-27 14:28:10 +08:00
gVisor bot
bdd5db95d8 Chore: move rule parser to rules 2020-06-05 17:43:50 +08:00
gVisor bot
9ff9414cfd Chore: aggregate mmdb (#474) 2020-01-11 21:07:01 +08:00
gVisor bot
d240994896 Chore: aggregate logger 2019-12-20 17:22:24 +08:00
gVisor bot
726281255c Fix: NoResolveIP should return current value (#390) 2019-11-04 10:42:39 +08:00
gVisor bot
f046ad73d2 Feature: add no-resolve for ip rules (#375) 2019-10-28 00:02:23 +08:00
gVisor bot
93f13c627c Feature: add experimental connections API 2019-10-27 21:44:07 +08:00
gVisor bot
7062bb4bba Feature: add DST-PORT and SRC-PORT 2019-05-09 21:00:29 +08:00
gVisor bot
4d61ae689f Fix: IP-CIDR invalid payload crash 2019-03-30 14:11:59 +08:00