Commit Graph

103 Commits

Author SHA1 Message Date
mo
9935a8baca use buffer pool interface 2020-08-06 10:12:46 +08:00
mo
d83167e33c rename request to handle 2020-08-06 09:45:31 +08:00
mo
5e00714791 clean code 2020-08-06 09:32:19 +08:00
mo
9f9020539a reduce code line with 2020-08-06 09:20:43 +08:00
mo
35e543fcfb add datagram test
rename request and response api name
2020-08-06 08:19:31 +08:00
mo
916af03167 fix request/response statute 2020-08-05 18:10:50 +08:00
mo
75dd487cbf fix client
fix server test
2020-08-05 17:32:37 +08:00
mo
274a120a58 add all test 2020-08-05 15:27:22 +08:00
mo
f2a8922819 fix ci
only support 1.13+
2020-08-05 14:47:08 +08:00
mo
f64deea851 add more test 2020-08-05 14:40:07 +08:00
mo
75344555b3 fix statute method parse 2020-08-05 13:54:05 +08:00
mo
6f88e8250a moved statute
and fix all file struct
2020-08-05 13:17:05 +08:00
mo
ceaf26cca1 add header test 2020-08-05 10:34:29 +08:00
mo
af6ce456f9 fix proxying 2020-05-06 16:45:30 +08:00
mo
d9230a4d63 fix proxying 2020-04-30 15:57:47 +08:00
mo
80604b63bb fix handle requst name 2020-04-24 15:52:47 +08:00
mo
d444ab9f9d fix packet parse function name 2020-04-24 09:08:15 +08:00
mo
1a22ef1ad8 fix udp packet bug 2020-04-23 23:40:00 +08:00
mo
f2844250ff add udp packet encode and decode 2020-04-23 23:17:54 +08:00
mo
b16d6bc8f5 fix addr special 2020-04-23 11:50:51 +08:00
mo
27b4e60932 fix local addr 2020-04-23 10:16:26 +08:00
mo
2e1d38c5b7 fix authcontext 2020-04-23 10:15:02 +08:00
mo
e32bb8ac76 revive inspect 2020-04-22 10:32:03 +08:00
mo
f77e659826 add user handle
revive inspect
2020-04-22 10:15:40 +08:00
mo
8b383556a2 fix readme 2020-04-21 22:39:11 +08:00
mo
6a3abb43a4 fix userIP --> userAddr like host:port 2020-04-21 22:31:04 +08:00
mo
acba51a242 add valid check add userIP 2020-04-21 22:28:34 +08:00
mo
881ed95bb4 move rule allow 2020-04-21 20:27:02 +08:00
mo
f4dcbed85b fix const defined 2020-04-21 14:03:20 +08:00
mo
859fb531b1 fix go mod require 2020-04-21 08:32:52 +08:00
mo
027a91ba72 fix example
fix option  bug
2020-04-20 21:29:50 +08:00
mo
180335f4f1 fix bindIP but it not used 2020-04-20 21:27:12 +08:00
mo
1daccf05c2 use options 2020-04-20 21:17:38 +08:00
mo
5518983a28 Support for the ASSOCIATE command 2020-04-20 20:41:58 +08:00
mo
c3129f323d add standard proxy test 2020-04-20 19:56:35 +08:00
mo
66fbc0399a fix head
fix socks5 test
fix request
2020-04-20 17:09:16 +08:00
mo
a87d46fbf5 add goroutine pool interface 2020-04-20 16:52:29 +08:00
mo
dd678cfead move parse header 2020-04-20 16:42:10 +08:00
mo
be8e44e47d implement raw udp 2020-04-20 16:19:51 +08:00
mo
32060b0332 fix head bug
add udp experimental handle
2020-04-20 12:39:01 +08:00
mo
d6f69bb3ef fix socks test pool bug
add pool test
2020-04-20 09:50:49 +08:00
mo
9101cefe62 add buffer pool 2020-04-20 09:41:06 +08:00
mo
74d001ca91 fix send reply 2020-04-20 09:21:29 +08:00
mo
1f84f6f4f6 use %v replace %w ,%w only support 1.14+ 2020-04-19 23:51:13 +08:00
mo
587b9a3da1 fix bug and add head to request 2020-04-19 23:40:14 +08:00
mo
93c488961d fix err format
delete dead code
2020-04-19 22:30:45 +08:00
mo
771f7fdc70 fix parse protocol 2020-04-19 21:55:14 +08:00
mo
fef547fd67 add head file 2020-04-19 21:37:05 +08:00
mo
f87199c59e Fix panic when target.LocalAddr() is not *net.TCPAddr
This happens when you use custom dialer that returns custom net.Conn
that returns a non-*net.TCPAddr net.Addr for LocalAddr() calls.

For example, if you dial through an SSH connection,
it might be difficult to figure out remote local address,
so you return a stub instead.
2020-04-19 17:57:30 +08:00
mo
d86385b825 use logger interface 2020-04-19 17:47:39 +08:00