56 Commits

Author SHA1 Message Date
Jason Lyu
d1eabcd312 Refactor(dialer): use DefaultDialer (#465) 2025-04-16 04:35:59 +08:00
Petya Petrov
c834bec3eb Fix(engine): mutex never unlocked on error (#456)
* fix error when mutex never unlock

---------

Co-authored-by: devil666face <artem1999k@gmail.com>
Co-authored-by: Jason Lyu <xjasonlyu@gmail.com>
2025-03-02 06:55:54 +08:00
Jason Lyu
1f09b4d42d Refactor(core): replace net.IP with netip.Addr (#395) 2024-08-31 12:00:38 +08:00
Jason Lyu
fd98f65994 Refactor(tunnel): modularize tunnel pkg (#393) 2024-08-31 11:31:18 +08:00
Jason Lyu
601601a1dc Refactor(log): use go.uber.org/zap (#389) 2024-08-29 06:56:35 +08:00
Jason Lyu
dd791e50c1 Feature: bump gVisor to latest version (#376) 2024-07-20 11:31:44 +08:00
Jason Lyu
8653c18875 Fix: safely split command strings (#340) 2024-02-20 05:41:58 +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
9838f57e0d Refactor: relocate dialer pkg 2023-05-20 14:53:08 +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
7327f2c784 Improve: with gvisor internal log 2023-03-27 13:21:10 +08:00
xjasonlyu
c45470650b Chore: reorder imports 2022-08-07 00:25:59 +08:00
xjasonlyu
6a53c52167 Chore: add udp-timeout constraint 2022-04-03 22:09:41 +08:00
xjasonlyu
992e716216 Improve: use interface index for macos 2022-04-02 16:08:55 +08:00
xjasonlyu
a0d31261b9 Chore: remove redundant alias 2022-04-02 15:06:30 +08:00
xjasonlyu
551e2c345c Feature: cli tcp options 2022-04-01 23:40:17 +08:00
xjasonlyu
21232703af Chore(core): use config.PrintFunc 2022-03-31 17:48:52 +08:00
xjasonlyu
ccf53dcb88 Chore: use mirror.Tunnel 2022-03-31 17:28:12 +08:00
xjasonlyu
e6fc4adccd Feature(restapi): add netstats 2022-03-30 23:38:31 +08:00
xjasonlyu
abdbaa6b83 Refactor(engine): remove struct 2022-03-30 23:09:50 +08:00
xjasonlyu
2aea811072 Chore: with engine 2022-03-29 19:42:44 +08:00
xjasonlyu
b166ed5e66 Refactor: stats -> restapi 2022-03-29 19:25:45 +08:00
xjasonlyu
3999c5d66b Refactor(core): with error callback 2022-03-29 17:19:54 +08:00
xjasonlyu
a4bedf6080 Refactor: new dialer impl 2022-03-29 13:39:18 +08:00
xjasonlyu
42d6c96b6b Fix: wrong wait logic 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
898e648cb5 Chore: close stack when stop 2022-03-29 13:39:18 +08:00
xjasonlyu
620d5ac834 Chore: put log in engine 2022-03-29 13:39:18 +08:00
xjasonlyu
584c9c7805 Chore: explicit resolver 2022-03-29 13:39:18 +08:00
xjasonlyu
c6ca52326a Refactor: main.go 2022-03-29 13:39:18 +08:00
xjasonlyu
8bb8423e50 Chore: fix lint 2022-03-26 15:06:42 +08:00
xjasonlyu
4be2734b19 Chore: make internal/version 2022-02-09 17:29:10 +08:00
xjasonlyu
8d2170832c Chore(engine): improve log message 2022-02-09 16:49:54 +08:00
xjasonlyu
3480680806 Chore: chmod -x .go files 2022-01-31 18:32:11 +08:00
xjasonlyu
830c231c43 Refactor: standalone version module 2022-01-31 16:00:17 +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
96e0c8c390 Chore: adapt fwmark option 2021-02-10 16:40:36 +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
08f236a01c Fix: lost stack log info 2021-02-08 20:23:02 +08:00
xjasonlyu
ace24826d2 Chore: move stack & device to core 2021-02-07 18:49:55 +08:00
xjasonlyu
669a601f1a Chore: move stack & device to component 2021-02-07 18:45:52 +08:00