Commit Graph

179 Commits

Author SHA1 Message Date
gVisor bot
e5eab112d0 feta: add hosts support domain and mulitple ip (#439)
* feat: host support domain and multiple ips

* chore: append local address via `clash`

* chore: update hosts demo

* chore: unified parse mixed string and array

* fix: flatten cname

* chore: adjust logic

* chore: reuse code

* chore: use cname in tunnel

* chore: try use domain mapping when normal dns

* chore: format code
2023-03-12 15:00:59 +08:00
gVisor bot
b7c2ad2f74 chore: better REJECT process 2023-02-27 09:46:16 +08:00
gVisor bot
e45b8dc404 chore: add early conn interface to decrease unneeded write 2023-02-27 00:26:49 +08:00
gVisor bot
f6911e21ea fix: ensure peekMutex is locked before handleSocket 2023-02-26 11:18:01 +08:00
gVisor bot
5e4dd2ab01 fix: reject's dial warning 2023-02-26 11:11:54 +08:00
gVisor bot
6c6910b273 fix: peek not work with some inbound 2023-02-25 19:41:14 +08:00
gVisor bot
a132fe585b chore: use early conn to support real ws 0-rtt 2023-02-24 09:54:54 +08:00
gVisor bot
aa9da5dcb0 chore: cleanup natTable's api 2023-02-18 13:16:07 +08:00
gVisor bot
e23763c71a feat: introduce a new robust approach to handle tproxy udp. (#389) 2023-02-17 16:31:15 +08:00
gVisor bot
96800e65ee chore: better source address 2023-01-25 13:00:18 +08:00
gVisor bot
bc34532418 Fix: Remove EnableProcess from config.go and enable-process from config.yaml.
Fix: FindProcess is now enabled by default when the rule set contains process-name rules.
2023-01-20 16:29:08 +08:00
gVisor bot
4a0413a33d fix #322: add option general.find-process-mode, user can turn off findProcess feature in router
findProcess slow down connection due to repeat call to FindProcessName in router environment
this option has 3 values: always, strict, off
- always, equal to enable-process: true. Just try to merge all process related option into one
- strict, as default value, behavior remains unchanged
- off, turn off findProcess, useful in router environment
2023-01-09 19:48:39 +08:00
gVisor bot
8c921d6f0a chore: add log 2022-12-05 19:48:54 +08:00
gVisor bot
75af900fc5 fix: correct C.Metadata 2022-12-04 22:08:20 +08:00
gVisor bot
3b1b077f80 chore: rebuild InboundListener 2022-12-04 21:53:13 +08:00
gVisor bot
e01cfc5627 chore: support skip the same config Listeners' Close and Listen 2022-12-04 17:20:24 +08:00
gVisor bot
1bcd6cac83 fix: close linstener 2022-12-04 15:15:23 +08:00
gVisor bot
9c9ff4dc5e chore: change C.PacketAdapter from a struct to an interface 2022-12-04 14:37:52 +08:00
gVisor bot
ae17141588 feat: add linsters 2022-12-04 13:37:14 +08:00
gVisor bot
c24bb51cc1 Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha 2022-11-28 20:04:56 +08:00
gVisor bot
4adfea87f7 chore: add retry in tunnel dial 2022-11-24 12:32:35 +08:00
gVisor bot
356c1ae5ce Fix: tunnel proxy match 2022-11-22 19:16:08 +08:00
gVisor bot
44e8aad7eb Feature: add tunnels 2022-11-20 21:30:55 +08:00
gVisor bot
7f4459150f chore: sync tunnel code 2022-11-12 21:42:45 +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
71ab8298a2 chore: always pass context when resolve dns 2022-11-12 13:18:36 +08:00
gVisor bot
d5d5dc2303 chore: remove AddrType on Metadata 2022-11-11 09:19:50 +08:00
gVisor bot
3d4ad0d317 fix: when host's ip in fakeip's range, don't send to remote server 2022-11-10 21:08:06 +08:00
gVisor bot
cb1d5baf0e fix: RESTful API sniffingEnable 2022-11-03 00:31:31 +08:00
gVisor bot
99a1561cd4 chore: trie.DomainTrie will not depend on zero value 2022-11-02 22:28:18 +08:00
gVisor bot
744c058932 fix: lazy check 2022-10-30 23:08:18 +08:00
gVisor bot
cac6e6cc7e chore: parse user's hosts before remoteDial 2022-10-29 09:03:00 +08:00
gVisor bot
02dd19e311 chore: add force-dns-mapping in sniffer 2022-10-14 07:46:33 +08:00
gVisor bot
894b37b4f3 chore: add description 2022-10-04 22:16:03 +08:00
gVisor bot
dd2b4f9476 chore: pure udp metadata 2022-10-02 20:08:41 +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
2015905b02 Chore: show the source ip in log (#2284)
Co-authored-by: Li Feng <fengli@smartx.com>
2022-09-02 16:59:00 +08:00
gVisor bot
730f5b2d5f Feature: sync missing resolver logic from premium, but still net.IP on opensource 2022-08-13 13:07:35 +08:00
gVisor bot
65d543329e Fix: nil pointer 2022-08-12 12:49:35 +08:00
gVisor bot
2f09805ea6 Chore: clean code 2022-08-12 03:04:58 +08:00
gVisor bot
e5f7d9b934 Fix: fakeip udp should not replace with another ip 2022-07-24 00:02:45 +08:00
gVisor bot
0c913db308 chore: clean up code 2022-07-13 22:27:49 +08:00
gVisor bot
e6d496cc6e Fix: fakeip udp should not replace with another ip 2022-07-05 21:09:29 +08:00
gVisor bot
5b51b8f727 Change: remove AddrType on Metadata (#2199) 2022-07-05 20:26:43 +08:00
gVisor bot
bb9fac37ae fix: find process error 2022-06-14 23:14:43 +08:00
gVisor bot
14dafb2d5c feat: add param general.enable-process, it will always find process or uid, default value is false 2022-06-14 23:08:07 +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
58e44ed27c fix: make CodeQL happy Dreamacro 2022-06-09 17:59:17 +08:00
gVisor bot
052a65e00c fix: 规则匹配默认策略组返回错误 2022-06-09 13:52:02 +08:00
gVisor bot
cc94b23d13 Chore: make CodeQL happy 2022-06-01 21:38:05 +08:00