Skyxim
573216befb
fix: tracker remote addr check
2023-04-27 01:39:29 +00:00
wwqgtxx
7bb5da3005
chore: support splice for direct outbound
2023-04-25 23:01:05 +08:00
wwqgtxx
40da1911d9
chore: using sync/atomic replace uber/atomic
2023-04-22 15:37:57 +08:00
wwqgtxx
aaf534427e
chore: close all connections after proxySet initial
2023-04-12 18:50:51 +08:00
wwqgtxx
bad7340a4e
chore: proxyDialer don't push flow to manager in statistic
2023-04-11 23:58:56 +08:00
wwqgtxx
8e8cddf462
chore: Update dependencies
2023-04-09 15:40:17 +08:00
wwqgtxx
e9c9d17a9b
chore: init gopsutil's Process direct from struct
2023-04-08 09:56:02 +08:00
rookisbusy
76340cc99c
feat: core support memory chat
2023-04-08 00:55:25 +08:00
wwqgtxx
eecd8fff71
feat: add memory status for snapshot
2023-04-07 23:53:46 +08:00
rookisbusy
36b3581389
Alpha ( #490 )
...
* feat: add memory status for snapshot
* feat: add memory status for snapshot
2023-04-07 22:55:01 +08:00
yaling888
8ab70d76e7
Fix: should always drop packet when handle UDP packet ( #2659 )
2023-04-06 09:38:59 +08:00
wwqgtxx
99f84b8a66
chore: make all net.Conn wrapper can pass through N.ExtendedConn
2023-04-02 22:24:46 +08:00
wwqgtxx
f7610ce2ad
chore: better uuid using
2023-03-15 10:10:03 +08:00
Skyxim
5d0efb5472
chore: keep existing connections
2023-03-15 09:18:03 +08:00
wwqgtxx
53928eb895
chore: better TunnelStatus define
2023-03-15 00:11:31 +08:00
Skyxim
cf7520ec22
chore: disconnect when suspended
2023-03-14 22:57:43 +08:00
Skyxim
09c53e7cb7
chore: Chore: adjust the loading order, and then load the resource at last
2023-03-14 22:37:07 +08:00
wwqgtxx
13111081be
fix: SA4001 for net.UDPAddr copy
2023-03-12 23:37:45 +08:00
Skyxim
7f588935ea
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
H1JK
ae966833a4
chore: Generate UUID from fastrand
2023-03-05 11:00:14 +08:00
wwqgtxx
76ccebf099
chore: better REJECT process
2023-02-27 09:46:16 +08:00
wwqgtxx
c1199f1a8a
chore: add early conn interface to decrease unneeded write
2023-02-27 00:26:49 +08:00
wwqgtxx
5e7d644efd
fix: ensure peekMutex is locked before handleSocket
2023-02-26 11:18:01 +08:00
wwqgtxx
efbde4a179
fix: reject's dial warning
2023-02-26 11:11:54 +08:00
wwqgtxx
a3b8c9c233
fix: peek not work with some inbound
2023-02-25 19:41:14 +08:00
wwqgtxx
75680c5866
chore: use early conn to support real ws 0-rtt
2023-02-24 09:54:54 +08:00
wwqgtxx
fc50392ec7
chore: cleanup natTable's api
2023-02-18 13:16:07 +08:00
Ovear
8e4dfbd10d
feat: introduce a new robust approach to handle tproxy udp. ( #389 )
2023-02-17 16:31:15 +08:00
wwqgtxx
d00d83abd4
fix: tun udp with 4in6 ip
2023-02-13 22:06:09 +08:00
Skyxim
a563e9375e
chore: better source address
2023-01-25 13:00:18 +08:00
Larvan2
8a7027e8d6
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
wwqgtxx
fa5b5ca02d
fix: tcpTracker's upload
2023-01-17 21:36:16 +08:00
wwqgtxx
50832aab47
chore: decrease direct depend on the sing package
2023-01-16 10:50:31 +08:00
H1JK
d1565bb46f
refactor: Implement extended IO
2023-01-16 09:42:03 +08:00
chain710
b4503908df
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
Skyxim
dcbe25c3ae
chore: add log
2022-12-05 19:48:54 +08:00
wwqgtxx
62474e0ed6
fix: correct C.Metadata
2022-12-04 22:08:20 +08:00
wwqgtxx
62226e8b3d
chore: rebuild InboundListener
2022-12-04 21:53:13 +08:00
wwqgtxx
8144373725
chore: support skip the same config Listeners' Close and Listen
2022-12-04 17:20:24 +08:00
Skyxim
e9d8dd09ac
fix: close linstener
2022-12-04 15:15:23 +08:00
wwqgtxx
6fc62da7ae
chore: change C.PacketAdapter from a struct to an interface
2022-12-04 14:37:52 +08:00
Skyxim
4f75201a98
feat: add linsters
2022-12-04 13:37:14 +08:00
wwqgtxx
b4b9ef2362
Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha
2022-11-28 20:04:56 +08:00
wwqgtxx
3880c3c1be
chore: add retry in tunnel dial
2022-11-24 12:32:35 +08:00
Dreamacro
8c6e205c5a
Fix: tunnel proxy match
2022-11-22 19:16:08 +08:00
Dreamacro
5b07d7b776
Feature: add tunnels
2022-11-20 21:30:55 +08:00
wwqgtxx
2a8e1778ad
chore: sync tunnel code
2022-11-12 21:42:45 +08:00
wwqgtxx
dc3e144b6a
Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha
2022-11-12 20:43:48 +08:00
wwqgtxx
901a47318d
chore: always pass context when resolve dns
2022-11-12 13:18:36 +08:00
wwqgtxx
6dadc2357a
chore: remove AddrType on Metadata
2022-11-11 09:19:50 +08:00
wwqgtxx
64552fbd00
fix: when host's ip in fakeip's range, don't send to remote server
2022-11-10 21:08:06 +08:00
adlyq
508e257543
fix: RESTful API sniffingEnable
2022-11-03 00:31:31 +08:00
wwqgtxx
22fb219ad8
chore: trie.DomainTrie will not depend on zero value
2022-11-02 22:28:18 +08:00
wwqgtxx
b9d8b69889
fix: lazy check
2022-10-30 23:08:18 +08:00
wwqgtxx
a46436f61a
chore: parse user's hosts before remoteDial
2022-10-29 09:03:00 +08:00
wwqgtxx
0da49bd92b
chore: add force-dns-mapping in sniffer
2022-10-14 07:46:33 +08:00
Skyxim
e4138c3e1e
chore: add description
2022-10-04 22:16:03 +08:00
Skyxim
6857b05039
chore: pure udp metadata
2022-10-02 20:08:41 +08:00
adlyq
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
x2c3z4
4f291fa513
Chore: show the source ip in log ( #2284 )
...
Co-authored-by: Li Feng <fengli@smartx.com>
2022-09-02 16:59:00 +08:00
Dreamacro
3946d771e5
Feature: sync missing resolver logic from premium, but still net.IP on opensource
2022-08-13 13:07:35 +08:00
metacubex
02933ae568
Fix: nil pointer
2022-08-12 12:49:35 +08:00
metacubex
65a289e16f
Chore: clean code
2022-08-12 03:04:58 +08:00
Dreamacro
d71a2ce61e
Fix: fakeip udp should not replace with another ip
2022-07-24 00:02:45 +08:00
Skyxim
947d9d4560
chore: clean up code
2022-07-13 22:27:49 +08:00
Dreamacro
5497adaba1
Fix: fakeip udp should not replace with another ip
2022-07-05 21:09:29 +08:00
Dreamacro
aaf08dadff
Change: remove AddrType on Metadata ( #2199 )
2022-07-05 20:26:43 +08:00
Skyxim
1b3b5b4dfe
fix: find process error
2022-06-14 23:14:43 +08:00
Skyxim
2e6bdc5636
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
Skyxim
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
Dreamacro
23063ae0b9
fix: make CodeQL happy Dreamacro
2022-06-09 17:59:17 +08:00
Skyxim
d32ab9ce74
fix: 规则匹配默认策略组返回错误
2022-06-09 13:52:02 +08:00
Dreamacro
3360839fe3
Chore: make CodeQL happy
2022-06-01 21:38:05 +08:00
Skyxim
067c02aba1
fix: 调整获取远程目的的位置
2022-05-28 20:01:27 +08:00
Skyxim
ac36473d13
refactor: 获取远程目的从tunnel中剔除,移至tracker
2022-05-27 09:00:48 +08:00
Skyxim
72fb153fe0
refactor: 优化UDP远程目标获取
2022-05-26 23:41:09 +08:00
adlyq
149b4b5b43
feat: RESTful API support disable sniffer
2022-05-24 13:44:52 +08:00
adlyq
cc1c1340a3
feat: 安卓恢复进程规则,可通过enable-process开关,默认true
2022-05-19 20:44:09 +08:00
CHIZI-0618
5bd5f1bfda
chore: remove Script mode residual code.
2022-05-14 13:00:33 +08:00
adlyq
df8196a68c
fix: print process path logic
2022-05-12 18:57:30 +08:00
Skyxim
27aa026568
fix: use actual metadata
2022-05-04 20:13:12 +08:00
Skyxim
fb58595d44
feat: Expose remote destination (udp proxy maybe domain of node)
2022-05-04 16:57:08 +08:00
Skyxim
a38b2bcb6d
Merge remote-tracking branch 'meta/Alpha' into Alpha
2022-04-28 08:56:00 +08:00
Skyxim
2e74986fe4
refactor: adjust provider loading order, remove meaningless pointers
2022-04-28 08:55:45 +08:00
Kr328
cca3a1a934
Fix: http proxy Upgrade behavior ( #2097 )
2022-04-27 12:38:31 +08:00
Kr328
6a92c6af4e
Fix: http proxy Upgrade behavior ( #2097 )
2022-04-25 19:50:20 +08:00
adlyq
3d6aea4c1e
feat: support uid rule
...
eg. UID,1000/5000-6000,Proxy
2022-04-22 16:27:51 +08:00
Meta Gowork
3f6d2e5f91
feat: dnsHijack support "any"
...
chore: adjust process debug display logic
2022-04-22 13:30:04 +08:00
yaling888
7ca1a03d73
Refactor: metadata use netip.Addr
2022-04-20 22:52:05 +08:00
MetaCubeX
42d853a7e6
chore: upgrade dependencies
2022-04-20 01:31:33 +08:00
Skyxim
80764217c2
feat: add domain list for sniffer, reverse force logic
...
when force is false, if domain in the list, will force replace
when force is true, if sniff domain in the list, will skip it
2022-04-16 08:21:31 +08:00
Meta
ce96ac35fb
chore:merge & adjust code
2022-04-12 20:20:04 +08:00
yaling888
173e10abe6
Chore: fix typos
2022-04-12 19:08:13 +08:00
Skyxim
544e0f137d
feat: sniffer support
...
sniffer:
enable: true
force: false # Overwrite domain
sniffing:
- tls
2022-04-09 22:30:36 +08:00
MetaCubeX
91e48b707b
Merge remote-tracking branch 'yaling888/with-tun' into Alpha
2022-04-05 14:44:40 +08:00
fishg
7a8af90b86
feat: add SMTPS/POP3S/IMAPS port to sni detect
2022-04-05 03:26:23 +08:00
Meta Gowork
6548dc90fa
Merge remote-tracking branch 'Plus/with-tun' into Alpha
2022-04-02 20:48:11 +08:00
fishg
afdcb6cfc7
fix: log level ajust and lint fix
2022-03-31 21:27:25 +08:00
fishg
c495d314d4
feat: 添加tls sni 嗅探
...
# Conflicts:
# tunnel/statistic/tracker.go
# tunnel/tunnel.go
2022-03-31 21:27:25 +08:00
yaling888
e877b68179
Chore: revert "Feature: add tls SNI sniffing ( #68 )"
...
This reverts commit 24ce6622a2
.
2022-03-31 21:20:46 +08:00