Leonid Evdokimov
9bcb4dcc7e
Fix compilation at OpenBSD 4.9.
2011-02-10 00:02:05 +02:00
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
Leonid Evdokimov
642c9a448f
Fix several compiler warnings.
2011-01-15 16:29:40 +02:00
Bin Jin
7099116ff1
remove free_null macro
2011-01-13 15:24:48 +08:00
Bin Jin
ba5b8bee01
handle malformed request properly
2010-12-09 13:30:08 +08: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
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
3d5d22a59b
fix typo
2010-11-25 17:48:11 +08:00
Bin Jin
0ed9eeb920
add pidfile option
2010-11-24 14:44:02 +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
d95c791e8b
fix: 403 found but not header provided
2010-11-23 02:04:18 +08:00
Bin Jin
1b07ca821c
handle http-relay client request in an evented way
2010-11-23 01:43:00 +08:00
Bin Jin
383455512c
add support for http POST connection
2010-11-23 00:31:14 +08:00
Bin Jin
ff134afb2f
fix issue: can't handle hostname in request headers properly
2010-11-19 08:17:01 +08:00
Bin Jin
ed8d184147
add proxy auth support for http-relay, also working but buggy
2010-11-19 07:51:27 +08:00
Bin Jin
b8a5598b17
use strcasecmp() instead, fix issue on staled auth
2010-11-19 00:47:39 +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
66d9d1cf83
Whitespace fixes.
2008-07-13 21:36:51 +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
5dda936cf9
Better logging.
2008-02-02 04:18:04 +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