Commit Graph
50 Commits
Author SHA1 Message Date
xjasonlyu 3320ba46e4 Fix: update tcpip.Address api 2023-05-18 21:38:29 +08:00
2d0bd1d219 Improve: tunnel/tcp pipe (#219)
Co-authored-by: xjasonlyu <xjasonlyu@gmail.com>
2023-04-03 19:15:24 +08:00
xjasonlyu 61a9d26815 Minor: UDP unidirectionalPacketStream 2023-04-03 19:13:03 +08:00
xjasonlyu 4cc02c822c Minor: improve tunnel/udp 2023-04-03 18:43:02 +08:00
xjasonlyu 20499c6432 Revert: cli tcp-wait-timeout option
This reverts commit 2c51a65685.
2023-04-03 17:57:13 +08:00
xjasonlyu ad522ebb35 Chore: minor renames 2023-04-03 17:43:19 +08:00
xjasonlyu b809f89411 Revert: udp-rlybuf option
As a low-level networking tool, tun2socks should be able to handle UDP packets of all possible sizes. This reverts commit fb9ca95909.
2023-04-03 12:24:07 +08:00
xjasonlyu 89c37dc156 Improve: deprecate isIgnorable
All errors should be returned by copyBuffer and handled by higher level functions.
2023-04-02 16:43:55 +08:00
xjasonlyu 1b8e063485 Fix: log message typo 2023-03-30 18:11:08 +08:00
2c51a65685 Feature: cli tcp-wait-timeout option (#156)
Co-authored-by: xjasonlyu <xjasonlyu@gmail.com>
2023-03-29 17:41:01 +08:00
xjasonlyu fb9ca95909 Feature: add udp-rlybuf option
* Default UDP relay buffer size: 16KiB
2023-03-29 16:56:03 +08:00
xjasonlyu 1e99f2d580 Chore: debug level log 2023-03-28 18:04:46 +08:00
xjasonlyu ce15b1b2c2 Improve: with default tracker 2023-03-28 18:00:05 +08:00
xjasonlyu 66860d3de8 Improve: enhance error handling 2023-03-27 00:43:39 +08:00
xjasonlyu c61d7b5a20 Chore: error is ignorable 2023-03-26 23:07:13 +08:00
xjasonlyu c45470650b Chore: reorder imports 2022-08-07 00:25:59 +08:00
xjasonlyu 55a8d038d6 Improve: ignore tcp errors 2022-07-15 21:08:11 +08:00
xjasonlyu 1ecd587857 Fix(udp): ignore EOF 2022-04-26 16:06:01 +08:00
xjasonlyu a8e8a2dc4c Fix(tunnel/udp): NAT source verification (#112) 2022-04-06 23:21:18 +08:00
xjasonlyu f2cfa15945 Chore(tunnel): minify log message 2022-04-06 17:26:02 +08:00
xjasonlyu 764657d657 Chore: ignore io timeout 2022-04-06 16:07:59 +08:00
xjasonlyu 102b46e9f6 Refactor(tunnel): udp packet relay 2022-04-05 23:14:16 +08:00
xjasonlyu ab728bd8cc Chore(tunnel): log tcp error 2022-04-05 23:13:38 +08:00
xjasonlyu 9797cb31c0 Refactor: return metadata.Addr only 2022-04-03 23:16:36 +08:00
xjasonlyu 8f97bda4f5 Chore: amend log messages 2022-04-03 22:31:59 +08:00
xjasonlyu 31e19a0690 Change: udp timeout = time.Duration 2022-04-02 15:05:47 +08:00
xjasonlyu d3fc3abbb7 Migration: go 1.18 2022-03-29 13:38:50 +08:00
xjasonlyu 5679d15442 Fix: nil addr panic (#99) 2022-02-12 21:16:43 +08:00
xjasonlyu dc2794ae1e Improve(statistic): use google/uuid 2022-02-06 21:02:49 +08:00
xjasonlyu 6cfbf4d0e6 Chore: add TODOs 2022-02-06 20:41:49 +08:00
xjasonlyu edec658cd0 Refactor: use core/adapter 2022-02-06 20:26:09 +08:00
xjasonlyu d552de237f Fix: reset timeout in udp tunnel 2022-02-05 16:59:23 +08:00
xjasonlyu 6603c1f334 Refactor: improve metadata structure 2022-02-05 16:51:17 +08:00
xjasonlyu dd0cde04b4 Refactor: optimize UDP module
Symmetric NAT support for now.
2022-02-05 15:49:03 +08:00
xjasonlyu 3480680806 Chore: chmod -x .go files 2022-01-31 18:32:11 +08:00
xjasonlyu fd000c6617 Refactor: standalone metadata module 2022-01-31 16:03:10 +08:00
xjasonlyu 1bbb51b332 Chore: use automaxprocs 2022-01-28 15:01:04 +08:00
Fan LinandGitHub c068fbd626 Fix: set major version to v2 (#88) 2022-01-03 16:06:18 +08:00
xjasonlyu ccc35c3c1b Refactor(tunnel): using parseAddr 2021-07-19 14:04:17 +08:00
xjasonlyu 3f7fdc1d83 Fix: atomic operation panic
This reverts commit 094199656b.
2021-03-22 13:04:49 +08:00
xjasonlyu 094199656b Chore: make set operation atomic 2021-03-13 11:50:14 +08:00
xjasonlyu 9502706ed9 Feature: add an option to set udp timeout 2021-02-26 14:22:16 +08:00
xjasonlyu ec4d98c4bf Fix: reset udp timeout after sending 2021-02-26 09:50:34 +08:00
xjasonlyu 43b8dd885d Chore: udp timeout => 60s 2021-02-13 13:18:30 +08:00
xjasonlyu b54d9936f9 Chore: unexported globals with _
Use uber’s go style.
2021-02-11 16:10:40 +08:00
xjasonlyu c28690bfc9 Fix: deprecate metadata.Valid method 2021-02-11 13:55:53 +08:00
xjasonlyu ae77a8a009 Refactor: autonomize core package 2021-02-08 20:04:51 +08:00
xjasonlyu 849f47baf7 Chore: decrease maxUDPQueueSize 2021-02-07 20:43:55 +08:00
xjasonlyu 035504020e Refactor: manager -> statistic 2021-02-07 10:54:29 +08:00
xjasonlyu 90d7d2dfe6 Refactor 2021-02-05 20:02:29 +08:00