Leonid Evdokimov
64afce95a1
Add libevent version to redsocks -v
output
2016-03-17 17:07:42 +03:00
Leonid Evdokimov
14ff78dfe7
Replace inconsistent rand()/random() with call to libevent2 rng
2016-03-09 01:12:38 +03:00
Leonid Evdokimov
24a5384e29
Emit better errors from config file parser
2016-03-09 01:12:38 +03:00
Leonid Evdokimov
457c5eb79a
Added -h, -? CLI options for help & -v for redsocks-version.
2011-11-27 03:30:43 +04:00
Leonid Evdokimov
2f00cf44c5
Added dnstc service that serves any UDP DNS-like request with TC flag.
...
TC flag means `truncated`, so it actually means "ask me via TCP" for
compliant resolver.
2011-09-22 03:25:26 +04:00
Leonid Evdokimov
79e22a67fa
Change license to Apache 2.0 to ensure compatibility with android stack.
2011-04-20 20:17:09 +03:00
Leonid Evdokimov
ebaeedead1
Improve nonce generation: srand() should be called only during startup.
2011-02-11 01:28:51 +02:00
Przemyslaw Pawelczyk
39b2639bdb
Fix logic error bugs.
...
scan-build result for socks5.c:256:
Function call argument is an uninitialized value
nextstate can be undefined reply's addrtype field has unexpected value.
Fix by adding else case before to report error, drop client and return
from socks5_read_reply() function.
scan-build result for main.c:144, parser.c:193:
Result of operation is garbage or undefined
If there is early error in main() in second FOREACH block, then
terminators array is not itialized before access in shutdown path.
Fix by moving memset() to precede this block.
gettoken() does not initialize copytype enum value, so can have a
garbage value at some point. Add else case to the chain of **iter tests
to report error and return from the function.
2011-01-27 23:05:45 +01:00
Bin Jin
9d876181b3
merge commits from upstream
2010-12-03 22:02:40 +08:00
Leonid Evdokimov
c0d4cede5a
Initial UDP over Socks5 support.
2010-12-03 02:18:14 +02:00
Bin Jin
0ed9eeb920
add pidfile option
2010-11-24 14:44:02 +08:00
Leonid Evdokimov
77a490422b
Added GPLv3 copyright notice to every source file.
2008-12-13 15:40:52 +06:00
Leonid Evdokimov
60ccc646e0
Write daemon shutdown event to log.
2008-08-18 23:08:45 +07:00
Leonid Evdokimov
4d886f5109
Graceful exit on SIGINT and SIGTERM.
2008-08-18 18:54:17 +07:00
Leonid Evdokimov
40fda9b6b7
Fixed minor memory leaks during fatal failure.
2008-08-18 17:34:18 +07:00
Leonid Evdokimov
66d9d1cf83
Whitespace fixes.
2008-07-13 21:36:51 +07:00
Leonid Evdokimov
c4c35981fd
Added command-line opts: "-t" to test config, and "-c /config/path".
2008-02-10 01:02:15 +06:00
Leonid Evdokimov
36dc692ab3
s/return 0/return EXIT_SUCCESS/, s/return 1/return EXIT_FAILURE/.
2008-02-10 00:59:00 +06:00
Leonid Evdokimov
8456d20883
Added logging priorities.
...
LOG_DEBUG - connection progress
LOG_INFO - all connections
LOG_NOTICE - network problems & startup banner
LOG_WARNING - unexpected behaviour, lack of client-related resources
LOG_ERR - startup errors & lack of memory
2008-02-10 00:57:22 +06:00
Leonid Evdokimov
5dda936cf9
Better logging.
2008-02-02 04:18:04 +06:00
darkk
20d7930ecf
Initial revision.
...
git-svn-id: file:///home/darkk/svnroot/redsocks@1 f324f89c-ff31-0410-8eac-c7e7ec545cec
2007-06-03 12:30:38 +00:00