Ambrose Chua
64b8ee7aaa
Use commandline options
2018-02-14 21:42:26 +08:00
Ambrose Chua
9c6b4a8df9
Initial socks-logger code
2017-09-18 19:16:52 +08:00
Armon Dadgar
e75332964e
Merge pull request #14 from stbuehler/feature-without-resolve
...
support not resolving FQDN
2016-09-02 11:42:37 -07:00
Stefan Bühler
d948001d94
support not resolving FQDN
...
Although one can put the FQDN into the context and retrieve it later, this
makes it more straightforward.
Usecase: forwarding to another (SOCKS-)proxy, filtering/routing based on FQDN.
2016-08-14 12:22:40 +02:00
Stefan Bühler
836d3b2bda
half-close all connections supporting `CloseWrite() error`
...
Usecase: support TCP and UNIX connections, support "wrapped" connections (peek
first bytes to support multiple protocols on one listening socket).
2016-08-14 12:15:52 +02:00
ymmt2005
385bbe4759
Add golang.org/x/net/context support.
...
Read http://blog.golang.org/context for its benefits.
This PR has not utilized contexts yet; just passing them
to every customization points to help them add/retrieve
request context values.
2016-03-08 23:29:11 +09:00
ymmt2005
66ca0497df
Let proxy pass down EOF (FIN) to the other end.
...
This PR improves proxy() implementation so that it passes down EOF
(i.e. TCP FIN) from the read end to the write end by using
TCPConn.CloseWrite(). This is a must for TCP proxy as TCP sockets
can be half-closed.
Moreover, Server.handleConnect() should wait for two acks from
errCh to guarantee that the communication is completely over.
This is also fixed.
Lastly, noisy debug log is removed.
2016-02-23 20:35:36 +09:00
Ox Cart
d251d351c1
Cleaned up address construction
2016-02-05 06:51:42 -06:00
Ox Cart
0126026885
Made dialer configurable
2016-02-04 13:25:27 -06:00
ap4y
ae345732fa
Refactor handleRequest using new Request struct
2016-01-11 21:01:29 +13:00
ap4y
1fcd99d996
Use Request struct in rewrite interface
2016-01-11 20:29:20 +13:00
ap4y
8a2ebe32dc
Introduce Request struct
...
Encapsulates state of the incoming request
2016-01-11 20:21:34 +13:00
svent
1b0ce4078f
Add configuration option for the log target
2015-09-07 01:47:05 +02:00
Armon Dadgar
df5acec0ee
Testing failure rules
2014-02-13 10:49:35 -08:00
Armon Dadgar
85e909eb88
Fixing bind port return value
2014-01-24 14:31:58 -08:00
Armon Dadgar
4d1f2ce7ad
Always send an address in the reply, set to zero
2014-01-24 14:20:55 -08:00
Armon Dadgar
c9813fbde2
Add support for address rewriting
2014-01-23 16:55:08 -08:00
Armon Dadgar
86690d7131
Expose AddrSpec
2014-01-23 16:46:32 -08:00
Armon Dadgar
b6ffce37c3
Fix a panic condition
2014-01-23 16:23:59 -08:00
Armon Dadgar
08b93ecec3
Prefix logs with 'socks'
2014-01-23 15:55:54 -08:00
Armon Dadgar
633d3d7152
Clarify log messages
2014-01-23 15:17:43 -08:00
Armon Dadgar
9aca0ed614
Testing the CONNECT handling
2014-01-23 14:07:39 -08:00
Armon Dadgar
5437f80e57
Support for the CONNECT command
2014-01-23 13:42:35 -08:00
Armon Dadgar
39ddd6adce
Apply rules to command
2014-01-23 13:11:58 -08:00
Armon Dadgar
d543a0147b
Working on request parsing
2014-01-23 12:04:20 -08:00
Armon Dadgar
a56c8ea151
Adding request file
2014-01-23 11:29:13 -08:00