34 Commits

Author SHA1 Message Date
Jason Lyu
a1a64030c4 Chore: bump to go1.25 (#490)
* bump go mods
* bump actions
* remove go.uber.org/automaxprocs
2025-09-03 23:38:43 -04:00
Jason Lyu
601601a1dc Refactor(log): use go.uber.org/zap (#389) 2024-08-29 06:56:35 +08:00
Amaindex
90f77548ed Feature: add support for multicast (#245)
* add support for multicast (#243)

* adjust setup

---------

Co-authored-by: xjasonlyu <xjasonlyu@gmail.com>
2023-08-28 03:40:49 +08:00
xjasonlyu
20499c6432 Revert: cli tcp-wait-timeout option
This reverts commit 2c51a65685.
2023-04-03 17:57:13 +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
Solyn
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
Jack
007c97fe67 Feature: support pre&post-up exec (#233)
* Add tun pre/post script
* Improve: pre & post tun

---------

Co-authored-by: xjasonlyu <xjasonlyu@gmail.com>
2023-03-27 13:26:39 +08:00
xjasonlyu
c45470650b Chore: reorder imports 2022-08-07 00:25:59 +08:00
xjasonlyu
31e19a0690 Change: udp timeout = time.Duration 2022-04-02 15:05:47 +08:00
xjasonlyu
596056676c Chore: rename to netstack 2022-04-02 00:23:49 +08:00
xjasonlyu
551e2c345c Feature: cli tcp options 2022-04-01 23:40:17 +08:00
xjasonlyu
abdbaa6b83 Refactor(engine): remove struct 2022-03-30 23:09:50 +08:00
xjasonlyu
b166ed5e66 Refactor: stats -> restapi 2022-03-29 19:25:45 +08:00
xjasonlyu
620d5ac834 Chore: put log in engine 2022-03-29 13:39:18 +08:00
xjasonlyu
376a1eac2c Fix: early stopped engine (#105) 2022-03-29 13:39:18 +08:00
xjasonlyu
c6ca52326a Refactor: main.go 2022-03-29 13:39:18 +08:00
xjasonlyu
ae07fbdb68 Chore: delete common/automaxprocs 2022-03-29 13:39:18 +08:00
xjasonlyu
3480680806 Chore: chmod -x .go files 2022-01-31 18:32:11 +08:00
xjasonlyu
1bbb51b332 Chore: use automaxprocs 2022-01-28 15:01:04 +08:00
Fan Lin
c068fbd626 Fix: set major version to v2 (#88) 2022-01-03 16:06:18 +08:00
xjasonlyu
5ee4c676a1 Feature: YAML config support 2021-11-10 13:38:20 +08:00
xjasonlyu
9502706ed9 Feature: add an option to set udp timeout 2021-02-26 14:22:16 +08:00
xjasonlyu
7e55b71b30 Fix: replace pflag with flag
pflag was deprecated due to poor maintenance
2021-02-11 13:06:12 +08:00
xjasonlyu
7f7f2913a8 Feature: add fwmark support 2021-02-10 15:46:55 +08:00
xjasonlyu
ea62deb0b6 Refactor: rewrite engine 2021-02-10 13:11:11 +08:00
xjasonlyu
2e0b9d5e24 Chore: update command line help messages 2021-02-07 11:31:03 +08:00
xjasonlyu
aa703ac90d Chore: rename secret to token 2021-02-06 11:39:25 +08:00
xjasonlyu
90d7d2dfe6 Refactor 2021-02-05 20:02:29 +08:00
xjasonlyu
38272319ee change about text 2020-11-07 13:52:12 +08:00
xjasonlyu
e1e96c8cfb v2 2020-11-05 18:41:15 +08:00
Jason
1fc69d1041 mv main package to cmd folder 2020-02-26 14:49:55 +08:00
Jason
43a90e00d3 Linux: add option to persist TUN device 2019-11-06 10:45:07 +08:00
Jason
d79c5ae657 move main file to root 2019-08-20 16:54:51 +08:00