78 Commits

Author SHA1 Message Date
Toby
069bcde2ac feat: wechat-video 2022-01-03 22:25:27 -08:00
Toby
23ed99ad05 feat: minAckRate = 0.75 2022-01-03 21:58:08 -08:00
Toby
8e1f43093a feat: better ack rate mechanism for brutal CC 2021-12-29 22:52:34 -08:00
Toby
1c06b66cdc feat: transport & obfs refactoring 2021-12-27 18:07:01 -08:00
Toby
e32191a967 chore: PipeBufferSize should be 65535 not 65536 2021-12-27 16:48:34 -08:00
Toby
4cb4ca5e96 feat: make quic-go happy about buffer stuff 2021-12-27 16:42:10 -08:00
Toby
9e5483c11b feat: reduce obfs gc overhead by reusing buffers 2021-12-23 17:25:11 -08:00
Toby
4872004a5c feat: experimental faketcp implementation 2021-12-15 16:46:20 -08:00
Haruue Icymoon
476e045451
feat(server): IPv6 only mode
fix #168
2021-12-09 21:04:59 +08:00
Toby
50bee6c694 feat: use local address from TCP connection for SOCKS5 UDP 2021-12-03 23:00:27 -08:00
Toby
c811b8e558 feat: make sure SOCKS5 listen address has a specified IP (for UDP to work) 2021-12-03 21:50:07 -08:00
Toby
6eb49eef12 feat: remove ACL from TPROXY & TUN 2021-11-24 23:04:34 -08:00
Toby
97c83dc935 wrappedQUICStream to handle stream close properly 2021-08-02 22:42:25 -07:00
Toby
5d29fb954d TODO: Change fixed dstAddr 2021-08-02 21:49:36 -07:00
Toby
c32ac17f62 Bump quic-go to v0.22.0 & remove SetDontFragment (as it's implemented in quic-go already) 2021-07-28 21:18:43 -07:00
Haruue Icymoon
9c3597bd11
Allow build with CGO_ENABLED=0 by disable TUN Mode
Run hysteria on your favorite OpenWRT router.
2021-07-08 21:19:13 +08:00
Toby
faabd094fd Fix UDP TPROXY incorrect src addr bug & build master action 2021-05-09 14:53:30 -07:00
Haruue Icymoon
68d8cd4043
Fix TCP timeout not works in TUN server 2021-05-03 15:43:45 +08:00
Haruue Icymoon
81128a7626
ACL for TUN 2021-05-03 11:22:46 +08:00
Haruue Icymoon
13ec19cbfe
Implement TUN, no ACL support yet 2021-05-03 11:22:43 +08:00
Toby
c0e46ee937 Remove obsolete test 2021-04-28 16:42:08 -07:00
Toby
214f1cf72c Fix ConnGauge nil crash 2021-04-27 23:10:09 -07:00
Toby
8c5b701a4b Prometheus Active Conn Gauge 2021-04-27 20:38:43 -07:00
Toby
03d530776c Fix stubs 2021-04-27 20:21:01 -07:00
Toby
3667778ca7 Fix import cycles 2021-04-27 20:18:43 -07:00
Toby
5ac95d987a Use core.Transport 2021-04-27 20:14:43 -07:00
Toby
4da73888f4 Transport WIP 2021-04-26 17:34:08 -07:00
Toby
b3d149a72f UDP TProxy ACL & Fix SOCKS5 hijack bug 2021-04-25 23:45:45 -07:00
Toby
7b3e1a5b41 UDP TProxy implementation, no ACL support yet 2021-04-25 00:38:07 -07:00
Toby
2b4e660324 Remove pointless udpMinTimeout 2021-04-24 18:13:30 -07:00
Toby
3b7aefb10d Improve UDP Relay timeout handling 2021-04-24 17:37:50 -07:00
Toby
70fd2ffc0d ACL for TCP TProxy 2021-04-24 15:36:19 -07:00
Toby
787ed14c4d TCP TProxy implementation, no UDP or ACL support yet 2021-04-24 02:56:17 -07:00
Toby
444bb5daec handleControlStream should not always return true 2021-04-22 18:09:48 -07:00
Toby
b3f0306c13 Merge branch 'master' into wip-udp-relay 2021-04-21 21:54:28 -07:00
Toby
98ddad22f6 Close stopChan on exit 2021-04-21 21:42:35 -07:00
Toby
bca98ef4da Implement UDP relay 2021-04-21 21:40:43 -07:00
Toby
78f6eece9f Remove unnecessary closures 2021-04-21 17:43:24 -07:00
Toby
3b6a2bc56e Use correct address for packets from localRelayConn 2021-04-21 17:08:01 -07:00
Toby
d8b198ca31 Rename the original relay to TCPRelay 2021-04-21 16:38:08 -07:00
Toby
51abb06911 Adjustable saltLen 2021-04-21 14:23:40 -07:00
Toby
b80db1fc19 XPlus obfs & don't frag 2021-04-19 20:52:50 -07:00
Toby
eb9006bd0d Add missing file 2021-04-19 00:20:39 -07:00
Toby
b09880a050 Split host & port in the protocol, and make each domain resolves only once even when ACL is enabled, improving performance and ensuring consistency of connection destinations 2021-04-19 00:20:22 -07:00
Toby
7b841aa203 Protocol version check 2021-04-18 18:07:01 -07:00
Toby
6ddcbdc01d Implement Prometheus metrics 2021-04-10 18:01:56 -07:00
Toby
461b16f07f External HTTP auth implementation 2021-04-04 14:47:07 -07:00
Toby
ede94df103 Passthrough required methods for quic-go to increase the buffer size (https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size) 2021-04-02 14:20:48 -07:00
Toby
65c26cdfe4 Small tweak to brutal CC 2021-03-31 16:01:59 -07:00
Toby
ed5442de15 SOCKS5 UDP ACL 2021-03-27 20:50:08 -07:00