Commit graph

323 commits

Author SHA1 Message Date
gVisor bot
7a4f9959f9 chore: support set cwnd for hy2 too 2023-09-21 16:41:31 +08:00
gVisor bot
eb2ee5c1ba feat: inbound support Hysteria2 2023-09-21 15:10:35 +08:00
gVisor bot
b23ccfdf45 chore: Update dependencies 2023-09-21 08:57:38 +08:00
gVisor bot
d0d576bdee chore: using xsync.MapOf replace sync.Map 2023-09-02 16:54:48 +08:00
gVisor bot
aab21720b5 feat: configurable TCPKeepAlive interval 2023-09-02 16:45:16 +08:00
gVisor bot
8463db4f4e chore: cleanup codes 2023-09-02 14:12:53 +08:00
gVisor bot
9bd834b34a refactor: Decouple .Cleanup from ReCreateTun
The listener.Cleanup method will be called during
executor.Shutdown and route.restart, so it should serve
all kinds of listeners rather than a single tun device.

Currently listener.ReCreateTun will call it to handle
some internal affairs, This should be decoupled.

In this way, the cleanup tasks for data outside the
process life cycle that other listeners will add here
in the future will not be accidentally triggered
by configuring tun.
2023-09-02 14:12:53 +08:00
gVisor bot
76ea420764 fix: RESTful api missing TunConf.device
In commit 54fee7b, due to failure to take into account that
not all required parameters of `sing_tun.server.New` have
default values provided by `LC.Tun`, the name of the tun device
cannot be obtained when `TunConf.device` is not explicitly
configured. This commit fixed the issue.
2023-09-02 14:12:53 +08:00
gVisor bot
6ffd4a7de1 feat: ntp service 2023-09-02 02:15:46 +08:00
gVisor bot
107613f0f6 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
gVisor bot
e8f33f0f23 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
gVisor bot
e051dc6eb6 fix: tuic server cwnd parsing 2023-06-21 14:00:49 +08:00
gVisor bot
7c04b3a096 chore: tuic server can handle V4 and V5 in same port 2023-06-21 13:53:37 +08:00
gVisor bot
7ff7a4745d chore: fix TUIC cwnd parsing 2023-06-21 00:47:05 +08:00
gVisor bot
c6db154046 chore: Update dependencies 2023-06-19 08:23:48 +08:00
gVisor bot
011cde328c feat: support tuicV5 2023-06-12 18:42:46 +08:00
gVisor bot
ea5a231145 chore: Something update from clash :) (#606) 2023-06-06 09:45:05 +08:00
gVisor bot
35ead7d20b chore: update proxy's udpConn when received a new packet 2023-06-03 21:40:09 +08:00
gVisor bot
9e6aaea7e0 chore: update quic-go to 0.35.1 2023-06-03 16:45:35 +08:00
gVisor bot
755f7c27b8 chore: add WaitReadFrom support in ssr 2023-05-28 22:51:44 +08:00
gVisor bot
83f6d6f8f2 chore: add IN-USER and IN-NAME rules 2023-05-28 17:19:57 +08:00
gVisor bot
57883b4927 chore: using internal socks5.ReadAddr0 in trojan 2023-05-20 18:35:04 +08:00
gVisor bot
fe51e95d88 chore: improve read waiter interface 2023-05-12 12:12:22 +08:00
gVisor bot
4c38b2f0bf fix: sing-based listener panic 2023-05-12 09:14:27 +08:00
gVisor bot
e81ee44f33 chore: better tproxy error logging 2023-05-11 21:31:29 +08:00
gVisor bot
31b70b9fbd chore: decrease shadowsocks udp read memory used for no-windows platform 2023-05-11 19:01:41 +08:00
gVisor bot
96511d8613 chore: sing inbound support WaitReadPacket 2023-05-10 22:35:50 +08:00
gVisor bot
50fef8e201 fix: sing inbound should check needAdditionReadDeadline on udp too 2023-05-10 16:03:28 +08:00
gVisor bot
a48d1f0948 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
gVisor bot
bbfdbae3a6 feat: add proxy and sing-based listener support sing-mux 2023-04-23 19:57:54 +08:00
gVisor bot
1248ba250e chore: update wireguard-go 2023-04-20 13:46:21 +08:00
gVisor bot
1e4778d69e chore: Adopt sing-tun's update 2023-04-17 20:38:37 +08:00
gVisor bot
7867b7ea2d chore: using new chan based deadline reader 2023-04-17 19:29:07 +08:00
gVisor bot
a0ddce0c6f chore: better error ignore 2023-04-09 23:06:56 +08:00
gVisor bot
c305ea2b7a chore: Add read deadline implementation 2023-04-09 22:58:05 +08:00
gVisor bot
81a996ec1d fix: tun warn timeout 2023-04-09 19:00:45 +08:00
gVisor bot
ae5fafa885 chore: make all net.Conn wrapper can pass through N.ExtendedConn 2023-04-02 22:24:46 +08:00
gVisor bot
96461ab557 feat: nameserver-policy support use rule-providers and reduce domain-set memory 2023-04-01 11:53:39 +08:00
gVisor bot
8143d28502 fix: tproxy listener cannot listen udp 2023-03-27 22:18:54 +08:00
gVisor bot
b49bb0b2bf chore: move sing-tun's udpTimeout fix to there lib 2023-03-23 19:53:28 +08:00
gVisor bot
e36bb24b43 fix: sing_tun apply udpTimeout when using gvisor stack 2023-03-23 14:05:31 +08:00
gVisor bot
ad9a2365e5 chore: shadowsocks listener support the "udp" setting 2023-03-21 12:40:36 +08:00
gVisor bot
832ebb4050 Update UoT protocol 2023-03-17 13:23:45 +08:00
gVisor bot
2be8768bc7 fix: tuic udp native mode can't relay packetSize>1200 2023-03-16 21:09:44 +08:00
gVisor bot
9c0870106d 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
gVisor bot
4b6bbef697 Update UoT protocol 2023-03-15 14:46:35 +08:00
gVisor bot
30fe29bea1 chore: Update dependencies 2023-03-04 23:41:56 +08:00
gVisor bot
e45b8dc404 chore: add early conn interface to decrease unneeded write 2023-02-27 00:26:49 +08:00
gVisor bot
32978a6459 fix: checkTunName mistake 2023-02-24 14:58:01 +08:00
gVisor bot
df28a353b9 fix: tunnel's inboundTFO missing 2023-02-24 14:19:50 +08:00