Przemyslaw Pawelczyk
cf3dc2c4f0
Hide warnings on unused variables if asserts are off.
...
redsocks.c: In function 'redsocks_read_expected':
redsocks.c:407: warning: unused variable 'read'
http-relay.c: In function 'httpr_client_read_cb':
http-relay.c:520: warning: unused variable 'written_wo_null'
These variables are used in asserts and if asserts are not compiled,
e.g. by defining NDEBUG (usually in CFLAGS via -DNDEBUG), then we have
misleading warnings.
Add in utils.h UNUSED() macro for creating null statement with result
casted to void. Use it to fix above warnings.
2011-01-27 23:22:09 +01:00
Przemyslaw Pawelczyk
c82e944cba
Fix dead store bugs.
...
scan-build result for redsocks.c:707, base.c:402, redudp.c:659:
Dead assignment
2011-01-27 22:52:13 +01:00
Leonid Evdokimov
642c9a448f
Fix several compiler warnings.
2011-01-15 16:29:40 +02:00
Bin Jin
9d876181b3
merge commits from upstream
2010-12-03 22:02:40 +08:00
Leonid Evdokimov
bce12d59dd
Fix bug introduced in 45cab3.
2010-12-02 23:30:21 +02:00
Leonid Evdokimov
94c96a60ef
Cleanup client session logging.
2010-12-02 23:16:23 +02:00
Bin Jin
7772258767
fix issue: recieve eof from client while connection to relay is not established
2010-11-29 22:41:53 +08:00
Leonid Evdokimov
45cab3de31
This cleanup commit introduces ex-plain function!
2010-11-29 00:09:48 +02:00
Bin Jin
04662c4226
fix several fatal issues; send request body on fly, rather than depend on content-length
2010-11-28 13:47:49 +08:00
Leonid Evdokimov
6e574a2021
Another source code cleanup.
2010-11-27 23:30:58 +02:00
Leonid Evdokimov
8ad8d7eb41
More source code cleanup.
2010-11-27 23:20:46 +02:00
Leonid Evdokimov
c50dd8b2b4
Some source code cleanup.
2010-11-27 21:57:43 +02:00
Bin Jin
9136aa5e5f
add clang compiler support; clean warnings; remove auth info from log file
2010-11-25 19:11:14 +08:00
Bin Jin
651754834f
fix memory leak issues
2010-11-23 14:19:57 +08:00
Bin Jin
a1e65e4ccb
fix issue: EOF from client in http relay
2010-11-23 13:21:09 +08:00
Bin Jin
abb26a1505
fix issue: segment fault on ARM platform
2010-11-21 22:33:27 +08:00
Bin Jin
c12924022a
add proxy auth for http-connect, working but buggy
2010-11-18 22:57:20 +08:00
Leonid Evdokimov
77a490422b
Added GPLv3 copyright notice to every source file.
2008-12-13 15:40:52 +06:00
Leonid Evdokimov
ed80ac7d70
Fix compiler warning: time() was undefined.
2008-08-19 02:21:14 +07:00
Leonid Evdokimov
7c714b750f
Added ability to create many redsocks config sections to have many redirectors.
2008-08-18 17:46:27 +07:00
Leonid Evdokimov
0a1bcb5bb9
Enable SO_KEEPALIVE for client and relay sockets.
2008-08-14 03:49:42 +07:00
Leonid Evdokimov
1814548b1d
More debug logging: active event-mask is logged too.
2008-07-16 15:12:01 +07:00
Leonid Evdokimov
66d9d1cf83
Whitespace fixes.
2008-07-13 21:36:51 +07:00
Leonid Evdokimov
23a62f69c8
debug util: dumping list of connections on SIGUSR1.
2008-07-13 04:22:52 +07: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
72a8d52466
Fixed typo: local_ip is in_addr, not tcp port.
2008-02-05 20:49:01 +06:00
Leonid Evdokimov
7d4e3714d0
Ignore SIGPIPE.
2008-02-05 12:34:39 +06:00
Leonid Evdokimov
08030a7fcf
Better socket errors logging.
2008-02-05 12:22:39 +06:00
Leonid Evdokimov
48ff78adf9
Client is not dropped until both parts of duplex connection are shut down.
2008-02-02 15:12:52 +06:00
Leonid Evdokimov
5dda936cf9
Better logging.
2008-02-02 04:18:04 +06:00
Leonid Evdokimov
42a5cede3a
Fixed handling EOF from client while connection is ongoing.
2008-02-02 02:00:15 +06:00
darkk
477b8f5b7d
Added http-relay subsystem to add transparent-proxy support to any http proxy.
2008-02-02 00:34:53 +06:00
darkk
bd455a6cba
Added relay_subsys.fini() callback
2008-02-02 00:32:53 +06:00
Leonid Evdokimov
be63952abf
Fixed socket leak in redsocks_connect_relay()
2008-02-02 00:29:19 +06:00
darkk
8e0f02cadc
Fixed segfault in redsocks_drop_client
2008-02-01 17:04:22 +06:00
darkk
f73ed3442e
Fixed bug in redsocks_connect_relay (client was always dropped)
2008-02-01 17:04:10 +06:00
darkk
4be1269db6
Updated error message, written to log.
2008-02-01 17:03:48 +06:00
darkk
48616f615f
Added hook to call instead of redsocks_connect_relay
2008-02-01 17:03:26 +06:00
darkk
ab1a2112b6
Fixed getdestaddr() warning.
2008-02-01 17:03:21 +06:00
darkk
5b46a9c5c8
Added redsocks.local_ip setting
2008-02-01 17:02:51 +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