YanceyChiew
54fee7bd3a
Improve: nicer tun info for RESTful api
...
Let the restful api still get TunConf even when tun is off.
Otherwise the api will return the default values,
instead of the values that actually take effect after enable.
* Due to this problem, yacd changes the displayed value
back to gvisor immediately after the user selects tun stack.
2023-08-30 21:13:32 +08:00
wwqgtxx
1181fd4560
feat: add udp-over-stream
for tuic
...
only work with meta tuic server or sing-box 1.4.0-beta.6
2023-08-21 12:37:39 +08:00
wwqgtxx
919daf0dbb
fix: tuic server cwnd parsing
2023-06-21 14:00:49 +08:00
wwqgtxx
6d824c8745
chore: tuic server can handle V4 and V5 in same port
2023-06-21 13:53:37 +08:00
Larvan2
1d94546902
chore: fix TUIC cwnd parsing
2023-06-21 00:47:05 +08:00
wwqgtxx
fe0f2d9ef9
chore: Update dependencies
2023-06-19 08:23:48 +08:00
wwqgtxx
e914317bef
feat: support tuicV5
2023-06-12 18:42:46 +08:00
タイムライン
dafecebdc0
chore: Something update from clash :) ( #606 )
2023-06-06 09:45:05 +08:00
wwqgtxx
63b5387164
chore: update proxy's udpConn when received a new packet
2023-06-03 21:40:09 +08:00
wwqgtxx
2c44b4e170
chore: update quic-go to 0.35.1
2023-06-03 16:45:35 +08:00
wwqgtxx
8e88e0b9f5
chore: add WaitReadFrom support in ssr
2023-05-28 22:51:44 +08:00
wwqgtxx
9c2972afb0
chore: add IN-USER
and IN-NAME
rules
2023-05-28 17:19:57 +08:00
wwqgtxx
984bf27d9b
chore: using internal socks5.ReadAddr0 in trojan
2023-05-20 18:35:04 +08:00
wwqgtxx
b674983034
chore: improve read waiter interface
2023-05-12 12:12:22 +08:00
wwqgtxx
a22b1cd69e
fix: sing-based listener panic
2023-05-12 09:14:27 +08:00
wwqgtxx
534282839c
chore: better tproxy error logging
2023-05-11 21:31:29 +08:00
wwqgtxx
234f7dbd3b
chore: decrease shadowsocks udp read memory used for no-windows platform
2023-05-11 19:01:41 +08:00
wwqgtxx
c58400572c
chore: sing inbound support WaitReadPacket
2023-05-10 22:35:50 +08:00
wwqgtxx
3b291d3fbf
fix: sing inbound should check needAdditionReadDeadline on udp too
2023-05-10 16:03:28 +08:00
sleshep
463da578dd
fixes #512 : geo download failed when startup ( #538 )
...
* fixes #512 : geo download failed when startup
- 启动阶段,executor还未初始化tunnel,tcpIn==nil导致geo下载失败,阻塞在
tcpIn <- context
* chore: handled by the upper layer
* chore: remove useless parameters
---------
Co-authored-by: Skyxim <noreply@skyxim.dev>
2023-05-01 21:27:55 +08:00
wwqgtxx
7ca4b64a2b
feat: add proxy and sing-based listener support sing-mux
2023-04-23 19:57:54 +08:00
wwqgtxx
00939da40f
chore: update wireguard-go
2023-04-20 13:46:21 +08:00
wwqgtxx
f100ce6a04
chore: Adopt sing-tun's update
2023-04-17 20:38:37 +08:00
wwqgtxx
495033270c
chore: using new chan based deadline reader
2023-04-17 19:29:07 +08:00
wwqgtxx
1dbefc40c8
chore: better error ignore
2023-04-09 23:06:56 +08:00
wwqgtxx
6c76312e5c
chore: Add read deadline implementation
2023-04-09 22:58:05 +08:00
rookisbusy
99dfa4c73a
fix: tun warn timeout
2023-04-09 19:00:45 +08:00
wwqgtxx
99f84b8a66
chore: make all net.Conn wrapper can pass through N.ExtendedConn
2023-04-02 22:24:46 +08:00
Skyxim
cfd03a99c2
feat: nameserver-policy
support use rule-providers and reduce domain-set memory
2023-04-01 11:53:39 +08:00
Skyxim
6ca14c814e
fix: tproxy listener cannot listen udp
2023-03-27 22:18:54 +08:00
wwqgtxx
291b5be986
chore: move sing-tun's udpTimeout fix to there lib
2023-03-23 19:53:28 +08:00
wwqgtxx
fd0580bfdd
fix: sing_tun apply udpTimeout when using gvisor stack
2023-03-23 14:05:31 +08:00
wwqgtxx
0336435ebc
chore: shadowsocks listener support the "udp" setting
2023-03-21 12:40:36 +08:00
世界
8cb67b6480
Update UoT protocol
2023-03-17 13:23:45 +08:00
wwqgtxx
3ae4285702
fix: tuic udp native mode can't relay packetSize>1200
2023-03-16 21:09:44 +08:00
wwqgtxx
998d407d44
Feat: support set tun file-descriptor in config file
...
Co-authored-by: DuFoxit <DuFoxit@users.noreply.github.com>
2023-03-15 23:43:58 +08:00
世界
e8d4f8ae7b
Update UoT protocol
2023-03-15 14:46:35 +08:00
wwqgtxx
3b037acb01
chore: Update dependencies
2023-03-04 23:41:56 +08:00
wwqgtxx
c1199f1a8a
chore: add early conn interface to decrease unneeded write
2023-02-27 00:26:49 +08:00
wwqgtxx
5bfad04b41
fix: checkTunName mistake
2023-02-24 14:58:01 +08:00
wwqgtxx
880664c6ab
fix: tunnel's inboundTFO missing
2023-02-24 14:19:50 +08:00
wwqgtxx
baaf509637
chore: using sing-shadowtls to support shadowtls v1/2/3
2023-02-21 21:58:37 +08:00
wwqgtxx
1a1e3345f4
chore: reset tunName in macos when it isn't startWith "utun"
2023-02-19 10:10:27 +08:00
wwqgtxx
a61685ce01
fix: disable header protection in vmess server
2023-02-18 16:42:54 +08:00
wwqgtxx
6a89cc15c3
chore: Considering remove GOAMD64=v2 of linux-amd64-compatible
...
close https://github.com/MetaCubeX/Clash.Meta/issues/391
2023-02-18 13:32:26 +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
Larvan2
6fb4ebba15
chore: Allow 0-RTT in Tuic server
...
refers to: https://github.com/quic-go/quic-go/pull/3635
2023-02-13 23:52:15 +08:00
wwqgtxx
99662b616f
fix: tuic listener config name
2023-02-02 21:48:20 +08:00
Larvan2
857d6e419f
fix: Parse CC fail in tuic.
2023-02-02 21:29:12 +08:00
wwqgtxx
37eca8af24
fix: tuic server's MaxIncomingStreams
2023-01-17 14:25:19 +08:00
Larvan2
db4f3eda55
fix: Add CC for TUIC server
2023-01-17 01:08:30 +08:00
wwqgtxx
49a2602329
fix: add Upstream to refconn
2023-01-16 13:26:30 +08:00
wwqgtxx
e88bddc24f
fix: addr panic
2023-01-16 12:47:22 +08:00
wwqgtxx
7a64c432b1
Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha
2023-01-01 13:03:30 +08:00
embeddedlove
fbca37c42b
Feature: REDIRECT support IPv6 ( #2473 )
2022-12-22 19:25:30 +08:00
Dreamacro
a6c144038b
Chore: improve redir getorigdst
2022-12-22 12:00:56 +08:00
embeddedlove
63922f86a2
chore: linux ipv6 REDIRECT ( #311 )
2022-12-22 08:45:11 +08:00
wwqgtxx
b5928c36a3
fix: tunnel panic
2022-12-11 08:59:57 +08:00
wwqgtxx
a9839abd4c
fix: tun create panic
2022-12-08 11:29:39 +08:00
wwqgtxx
cd99b2e795
fix: config code merge
2022-12-06 10:13:05 +08:00
wwqgtxx
b5b06ea49c
fix: config crash
2022-12-06 09:04:30 +08:00
wwqgtxx
f390b9cf2f
fix: inbound nil pointer
2022-12-05 23:10:47 +08:00
wwqgtxx
46d23d9b86
chore: all listeners support specialProxy
2022-12-05 17:53:54 +08:00
wwqgtxx
fd9c4cbfa5
chore: listeners support tun
2022-12-05 17:43:50 +08:00
wwqgtxx
5c410b8df4
chore: listeners support tunnel
2022-12-05 17:03:12 +08:00
wwqgtxx
8c58d8a8ad
fix: remove unneed listener's start
2022-12-05 16:29:50 +08:00
wwqgtxx
a0a2eb2106
chore: update dependencies
2022-12-05 11:03:28 +08:00
wwqgtxx
b7d976796a
chore: listeners support shadowsocks/vmess
2022-12-05 10:12:53 +08:00
wwqgtxx
2e22c712af
chore: rebuild add adapter/inbound.Addition to simply Listener.New apis
2022-12-05 00:20:50 +08:00
wwqgtxx
c7f83d3ff1
chore: listeners support tuic
2022-12-04 23:05:13 +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
db81db5363
Chore: allow tunnels don't set special proxy
2022-11-28 20:31:32 +08:00
wwqgtxx
b4b9ef2362
Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha
2022-11-28 20:04:56 +08:00
wwqgtxx
dd6f7e3701
fix: structure decode first do strict match
2022-11-28 19:11:55 +08:00
wwqgtxx
01e382285d
chore: tuic-server support restful api patch
2022-11-28 18:53:09 +08:00
wwqgtxx
562819e3ca
chore: tuic-server support disassociate command
2022-11-28 18:18:51 +08:00
wwqgtxx
551283c16e
chore: add tuic-server listener
2022-11-28 17:09:25 +08:00
Dreamacro
efa4b9e0b8
Fix: lint warning
2022-11-22 21:01:51 +08:00
Dreamacro
5b07d7b776
Feature: add tunnels
2022-11-20 21:30:55 +08:00
wwqgtxx
1880a485f8
chore: better tfo inbound code
2022-11-16 10:43:16 +08:00
zhudan
0eecd11fdc
ss and vmess inbound add tfo
2022-11-16 10:18:10 +08:00
zhudan
9c8e39827f
update tfo to v2
2022-11-16 10:18:10 +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
b2d7149a95
chore: support IN-PORT rule
2022-11-11 23:36:06 +08:00
wwqgtxx
64be213b66
code cleanup
2022-11-11 22:48:44 +08:00
wwqgtxx
68b28ed530
chore: shadowsocks listener support old cipher
2022-11-11 22:44:44 +08:00
wwqgtxx
3eacce9a66
chore: add vmess, shadowsocks, tcptun and udptun listener
2022-11-11 20:56:08 +08:00
wwqgtxx
94a765ee31
fix: avoid choose ZeroTier's tap to defaultInterface
2022-11-05 20:51:28 +08:00
wwqgtxx
e20d01a679
chore: try to let tun's restful patch api work
2022-11-04 08:52:30 +08:00
wwqgtxx
9a5c0a4b6d
chore: better tun config passing
2022-11-03 18:56:03 +08:00
adlyq
1b0d09068b
fix: RESTful API empty tun device name
2022-11-03 18:04:37 +08:00
wwqgtxx
3373b62b02
fix: try to support android hotspot when using tun
2022-11-03 12:58:21 +08:00
adlyq
7b0cd14b00
chore: netlink duplicate contains
2022-11-02 23:58:51 +08:00
wwqgtxx
c11a359761
chore: retrying for "Cannot create a file when that file already exists."
2022-10-14 08:27:34 +08:00
wwqgtxx
b9ef713dd7
chore: add sing-tun's custom route support
2022-10-13 19:26:14 +08:00
wwqgtxx
7b1427b843
fix: set default tun udp timeout to 5 minutes
2022-10-10 22:10:36 +08:00
wwqgtxx
77a3c1c3ae
fix: tun stack shown
2022-10-10 19:02:57 +08:00
wwqgtxx
2c236387b7
fix: flush default interface when tun config hasn't change
2022-10-10 09:32:42 +08:00
wwqgtxx
66e5136ba0
fix: correct sing-tun's rAddr
2022-10-09 13:16:13 +08:00
wwqgtxx
1f8b54a92d
fix: don't set auto detect interface with tun name
2022-10-07 16:54:08 +08:00
wwqgtxx
8d74a86bf1
fix: macos's tunName
2022-10-07 06:57:03 +08:00
wwqgtxx
6c82e98bbc
chore: fix sing-tun's BuildAndroidRules
2022-10-06 22:18:49 +08:00
wwqgtxx
94246104b8
chore: use sing-tun to replace old tun_adapter
2022-10-06 19:23:38 +08:00
wwqgtxx
347e5e9606
fix: dns tcp hijack not working
2022-10-05 13:29:10 +08:00
metacubex
ddf1c74091
adjust: routes for windows
2022-10-01 23:30:41 +08:00
metacubex
d3b88d1b4f
fix: ebpf support
2022-08-22 23:17:41 +08:00
Dreamacro
6e058f8581
Chore: remove old cache implementation
2022-08-17 11:43:20 +08:00
metacubex
dfeb901417
Fix: no_gviosr tags
2022-08-12 12:53:11 +08:00
metacubex
4ca2d4146b
Merge remote-tracking branch 'origin/Alpha' into Alpha
2022-08-12 03:36:15 +08:00
metacubex
5d97a7f9ca
Chore: clean code
2022-08-12 03:35:49 +08:00
metacubex
6eab1f158a
Fixed: gViosr func
2022-08-12 03:34:59 +08:00
metacubex
95e602bf3b
Chore: gVisor use bufferv2
2022-08-11 23:47:45 +08:00
zhudan
97270dcbe0
rm EBpf tun && disable android ebpf
2022-08-08 10:21:16 +08:00
zhudan
31f4d20477
support ebpf
2022-07-29 09:08:35 +08:00
zhudan
143c5de51d
inbound tfo
2022-07-22 15:16:09 +08:00
Skyxim
9a035d3c51
fix: no_gvisor compile failed for target linux
2022-07-16 19:35:52 +08:00
Dreamacro
fc5c9b931b
Fix: try to unmap lAddr on tproxy udp listener
2022-06-29 23:36:45 +08:00
Dreamacro
2fa1a5c4b9
Chore: update tproxy udp packet read logic
2022-06-12 19:37:51 +08:00
Kr328
d3503ff940
fix: fix upgrade header detect ( #2134 )
2022-06-09 17:57:48 +08:00
Skyxim
ed9b9ce3c5
refactor: 添加no_gvisor 编译tag, 剔除gvisor stack支持, 方便在arm设备上debug
2022-06-03 20:07:30 +08:00
adlyq
1af39cb228
fix: OpenClash 回环
2022-06-01 12:32:45 +08:00
Meta
c95735f083
chore: 调整内置winTun.dll部分
2022-06-01 12:01:08 +08:00
adlyq
fa2e6be05d
fix: TUN file exists
2022-05-31 10:34:13 +08:00
adlyq
708b8beadf
fix: compile
2022-05-29 20:02:30 +08:00
adlyq
7a8c98cd90
refactor: 使用 netlink 获取默认网卡
2022-05-29 15:35:08 +08:00
adlyq
13e907bbd0
refactor: 使用 netlink 配置 ip rule
2022-05-29 15:03:27 +08:00
adlyq
39e7832676
fix: route on android
2022-05-28 23:29:22 +08:00
adlyq
9b999e72ce
fix: npe
2022-05-28 23:29:03 +08:00
adlyq
9272d02149
refactor: 合并部分android代码入linux && ip 使用netlink配置路由
2022-05-28 21:58:29 +08:00
adlyq
149b4b5b43
feat: RESTful API support disable sniffer
2022-05-24 13:44:52 +08:00
adlyq
0f43a19fdb
refactor: new way to get interface change even for linux
2022-05-20 21:44:19 +08:00
adlyq
c787bbe0e5
fix: 热重载Tun配置
2022-05-19 19:19:19 +08:00
adlyq
b5623602f5
chore: Android auto-detect-interface plus
2022-05-18 12:00:57 +08:00
adlyq
b831eb178b
chore: remove noisy log
2022-05-16 18:20:13 +08:00
adlyq
d52b00bd34
refactor: remove useless code
2022-05-16 17:29:08 +08:00
adlyq
0b4c498c93
refactor: new way to get interface for android
2022-05-16 17:06:44 +08:00
Kr328
b384449717
Fix: fix upgrade header detect ( #2134 )
2022-05-15 09:12:53 +08:00
Skyxim
2fbbf7519f
fix: provider auto update
2022-05-08 00:04:16 +08:00
adlyq
bdfa16ca6f
fix: wrong parameters
2022-05-04 01:04:43 +08:00
MetaCubeX
b307bcb4a9
Merge remote-tracking branch 'Meta/Alpha' into Alpha
...
# Conflicts:
# listener/tun/ipstack/commons/router_linux.go
2022-05-04 01:04:11 +08:00
MetaCubeX
f26941091b
fix: default router with fakeIP when tun enable
2022-05-04 00:59:04 +08:00
MetaCubeX
6cd5769ed7
fix: default router with fakeIP when tun enable
2022-05-04 00:36:44 +08:00
MetaCubeX
3fbb7c7a2d
chore: add default router when tun enable
2022-05-03 23:58:11 +08:00