Commit Graph

66 Commits

Author SHA1 Message Date
xjasonlyu
b5f61c0999 Fix(core): race cond when init 2022-03-31 00:04:12 +08:00
xjasonlyu
3999c5d66b Refactor(core): with error callback 2022-03-29 17:19:54 +08:00
xjasonlyu
0a9f7f123c Chore: use tcpip.Error 2022-03-29 16:18:52 +08:00
xjasonlyu
ba7a7ddc95 Chore(core/adapter): rename to TransportHandler 2022-03-29 15:26:00 +08:00
xjasonlyu
42d6c96b6b Fix: wrong wait logic 2022-03-29 13:39:18 +08:00
xjasonlyu
9d7dacbea1 Chore(core/device): tun constants 2022-03-29 13:39:18 +08:00
xjasonlyu
0e8b16f9a1 Fix: decrease packet reference (#106)
ref: f375784d83
2022-03-29 13:39:18 +08:00
xjasonlyu
c2af4c0c7c Fix: wait for device to close 2022-03-29 13:39:18 +08:00
xjasonlyu
ba0a4acbda Refactor: core.CreateStackWithOptions 2022-03-29 13:39:18 +08:00
xjasonlyu
c68dd0771e Chore: make tcpKeepaliveCount explicit 2022-02-13 14:57:31 +08:00
xjasonlyu
5679d15442 Fix: nil addr panic (#99) 2022-02-12 21:16:43 +08:00
xjasonlyu
211831b3e6 Fix(iobased): exit outboundLoop to prevent goroutine leak 2022-02-08 20:17:30 +08:00
xjasonlyu
9d8251ac43 Fix: google/gvisor@f33d034fec (google/gvisor#7125) 2022-02-08 14:38:24 +08:00
xjasonlyu
bf35298289 Fix: suppress panic when wintun.dll not found 2022-02-07 17:31:28 +08:00
xjasonlyu
edec658cd0 Refactor: use core/adapter 2022-02-06 20:26:09 +08:00
xjasonlyu
93a5ff5d86 Improve(stack): add TCP recovery option 2022-02-06 20:17:45 +08:00
xjasonlyu
dd0cde04b4 Refactor: optimize UDP module
Symmetric NAT support for now.
2022-02-05 15:49:03 +08:00
xjasonlyu
6547625688 Fix: UDP packet buffer leak (#82) 2022-02-02 21:29:27 +08:00
xjasonlyu
c85cf60a45 Improve: reduce bytes copy 2022-02-02 19:48:38 +08:00
xjasonlyu
47e74ed8c2 Fix: release packet buffer (#82) 2022-02-02 17:17:59 +08:00
xjasonlyu
e36c2eb226 Improve: use *channel.Endpoint for underlying I/O 2022-02-02 17:17:43 +08:00
xjasonlyu
b28349235f Chore(stack): update opts.go 2022-02-01 20:34:43 +08:00
xjasonlyu
faed47da40 Chore: fix lint 2022-02-01 17:30:34 +08:00
xjasonlyu
13b5cc71d7 Improve(stack): specify NIC options 2022-02-01 17:19:51 +08:00
xjasonlyu
d415ed35d7 Improve(iobased): impl stack.GSOEndpoint 2022-02-01 17:18:17 +08:00
xjasonlyu
cd5b9e8954 Chore: rename to fdbased 2022-02-01 17:17:09 +08:00
xjasonlyu
c2ec509cfa Fix(core): update gVisor (#82, #95) 2022-02-01 17:16:39 +08:00
xjasonlyu
5d81f455bd Chore(stack): update comments 2022-02-01 13:18:25 +08:00
xjasonlyu
3480680806 Chore: chmod -x .go files 2022-01-31 18:32:11 +08:00
xjasonlyu
40dfe8807a Chore(iobased): use MTU() 2022-01-29 21:00:43 +08:00
xjasonlyu
e3007f0498 Chore: import with newline 2022-01-29 21:00:19 +08:00
xjasonlyu
59f682dfab Chore: rename to iobased 2022-01-28 21:10:10 +08:00
xjasonlyu
2a2420f89d Fix: revert module
Temporarily revert to previous gVisor version due to unstable bugs.
2022-01-20 15:07:42 +08:00
xjasonlyu
95f6464174 Chore: impl interface 2022-01-19 19:52:45 +08:00
Fan Lin
c068fbd626 Fix: set major version to v2 (#88) 2022-01-03 16:06:18 +08:00
xjasonlyu
4ffe32fd89 Improve: add default mtu for fd device 2021-12-08 16:27:45 +08:00
xjasonlyu
8fcd8fee85 Fix(fd): compile error 2021-11-01 14:01:21 +08:00
xjasonlyu
f6ba31f121 Feature: support fd device
Experimental support for file descriptor based device, may be used like `fd://3`
2021-10-17 14:21:37 +08:00
xjasonlyu
bf3f4599cc Chore(tun): remove with options 2021-10-17 14:12:54 +08:00
xjasonlyu
dc8e4f1ba1 Feature: new fd driver 2021-10-17 14:07:11 +08:00
xjasonlyu
c478adee34 Fix: rwbased interface implementation 2021-09-04 21:46:40 +08:00
xjasonlyu
525d424fca Chore: go1.17 build constraints 2021-08-21 10:48:37 +08:00
xjasonlyu
94c0b4a873 Chore: rename SetForwarding to SetForwardingDefaultAndAllNICs 2021-05-24 17:19:02 +08:00
xjasonlyu
70afaf3d55 Fix(stack): update udp transport 2021-05-13 13:29:26 +08:00
xjasonlyu
b51ad6feb1 Fix(rwbased): endpoint interface 2021-05-13 13:13:22 +08:00
xjasonlyu
1bd8029562 Optimize: use gvisor tun for linux 2021-03-21 21:13:07 +08:00
xjasonlyu
a1847d7153 Fix: udp for gvisor stack 2021-03-21 20:57:18 +08:00
xjasonlyu
82ac59b0f2 Fix: invalid argument when set MTU (https://github.com/xjasonlyu/tun2socks/issues/33) 2021-03-01 21:37:46 +08:00
xjasonlyu
b2b7e8bc46 Chore(tun): minor changes 2021-02-14 20:38:26 +08:00
xjasonlyu
0e1e04acc7 Fix: avoid extra copy on windows 2021-02-14 20:25:04 +08:00