Robert James Kaes
91e082671a
(upstream_get):
...
(upstream_add): Added support to allow ip addresses and networks to be
used when matching an upstream proxy directive.
[Code by Peter da Silva]
2003-06-02 21:55:14 +00:00
Robert James Kaes
4a377a712d
Improved the upstream proxy support by making the upstream proxy
...
server configurable based on the destination host. [Code written by
Peter da Silva]
2003-05-29 19:44:00 +00:00
Robert James Kaes
badd237fe6
# Added variables to config structure to keep track of the files to be
...
displayed for various HTTP errors and the stats page. [Steven Young]
2003-03-13 21:32:33 +00:00
Robert James Kaes
cb7e3eef04
Added support for conditionally using case sensitive filtering files.
...
Code changes from James E. Flemer.
2003-01-27 17:57:45 +00:00
Robert James Kaes
0a20bdd5b4
Removed the "bool_t" type since it conflicts with the newer C standards.
...
The type was just replaced by "unsigned int" types.
2002-12-04 17:06:14 +00:00
Robert James Kaes
e58343012f
Included code to disable the sending of the Via header. This is now
...
controlled by the ViaHeader configure directive.
2002-11-26 21:44:43 +00:00
Robert James Kaes
3b2be8ae88
Removed all the code supporting the TCP tunnelling feature of
...
tinyproxy. There is really no need for this code, since there are
perfectly good programs out there (like rinetd) which are designed for
TCP tunnelling. tinyproxy should be a good HTTP proxy, nothing more,
and nothing less; therefore, the tunnelling code is gone.
2002-11-03 17:10:33 +00:00
Robert James Kaes
fb688a2077
Removed the "logf" FILE structure from the config structure, and also renamed the "log_rotation_request" boolean to "received_sighup".
2002-06-15 17:29:59 +00:00
Robert James Kaes
35d3d79e92
Added into the config structure the filter_urls and filter_extended flags.
2002-05-27 01:59:28 +00:00
Robert James Kaes
52c15029d1
Moved all the system header includes into the common.h file.
2002-05-23 18:27:19 +00:00
Robert James Kaes
89ada2df28
Moved bind_address inside the config structure.
2002-04-24 16:45:45 +00:00
Robert James Kaes
2ec7a4dd72
The log_message() function now stores the messages if the configuration
...
file has not been read yet. The reason for this is that we don't know
where to log the messgaes until _after_ the config file has been
processed.
2002-04-22 19:34:20 +00:00
Robert James Kaes
5822ec3d44
Moved the log rotation code out of the signal handler and into it's own
...
function. The signal handler now simply sets a flag which is monitored
inside the thread_main_loop() function. The log rotation code has also
been tightened to handle any error conditions better. Credit to Petr
Lampa for suggesting that system functions inside of a signal handler is
bad magic.
2002-04-18 16:57:06 +00:00
Robert James Kaes
4fa5cef491
The malloc/free functions should be in stdlib.h, but if we can't find
...
stdlib.h then try including malloc.h. Maybe this will allow clean
compiling on some platforms.
2002-04-09 22:02:05 +00:00
Robert James Kaes
ea0d956a57
Removed an unused header.
2001-12-28 22:31:12 +00:00
Robert James Kaes
b68354a9da
Add a pre-processor test around the sys/types.h header file, to make sure
...
it's available before we try to include it.
2001-12-23 18:44:02 +00:00
Robert James Kaes
4ed73b6f07
Fixed up the order of some of the includes to cope with OpenBSD. Also,
...
test for the MSG_NOSIGNAL define.
2001-12-23 03:28:03 +00:00
Robert James Kaes
e0694a8f6e
Added support for the <pthreads.h> header.
2001-11-26 05:23:49 +00:00
Robert James Kaes
09fdf9af74
Increased the maximum buffer size to 96 KB
2001-11-26 01:39:53 +00:00
Robert James Kaes
f8b61da4ae
Added tests for _every_ header to make sure they are actually present on
...
the system.
2001-11-25 22:07:36 +00:00
Robert James Kaes
787ece6c01
Reformated text.
2001-11-22 00:31:10 +00:00
Robert James Kaes
4ac03908fc
Header reorganization. Basically all system headers are now included in
...
tinyproxy.h and all the other files include the tinyproxy.h header. This
moves all the dependancy issues into one file.
2001-10-25 17:27:39 +00:00
Robert James Kaes
d3b099140f
Some code clean up due to the creation of the conns.{c,h} files which now
...
store the creation/destruction and definition of the connection structure.
2001-10-25 16:58:50 +00:00
Robert James Kaes
28b4477f48
Added the upstream flag to the conn_s structure.
2001-10-25 05:10:57 +00:00
Robert James Kaes
606c8196a0
Added the configure variables to support the upstream proxy.
2001-09-16 20:12:29 +00:00
Robert James Kaes
7bfb5527ff
Include the SSL field in the connection structure since we're going to
...
handle SSL connections.
2001-09-14 04:56:58 +00:00
Robert James Kaes
0668e42e8f
Changed all the mallocs and callocs to use the new safemalloc and
...
safecalloc.
2001-09-08 18:58:37 +00:00
Robert James Kaes
51e4ebb293
Text clean up.
2001-08-29 04:04:01 +00:00
Robert James Kaes
be9ce3ad26
Moved some of the includes around so that FreeBSD can compile correctly.
2001-08-27 17:46:20 +00:00
Robert James Kaes
cebda5913d
Removed the config.anonymous entry since we've moved the information into
...
anonymous.c file.
2001-08-26 21:18:04 +00:00
Robert James Kaes
ace480bb65
Fixed the include order to better handle the sys/time.h and time.h
...
headers.
2001-06-06 19:33:26 +00:00
Robert James Kaes
0a5b82cd97
Fixed up the names of the DEFINES.
2001-06-02 02:07:34 +00:00
Robert James Kaes
1cd4d6d440
Added code to stop the creation of core files.
...
Changed all references to log() to log_message().
2001-05-27 02:36:22 +00:00
Robert James Kaes
86313eb6f5
Made the safefree() macro enabled all the time.
2001-05-23 18:00:54 +00:00
Robert James Kaes
a2c3e5ecc9
Moved the safefree() macro to the tinyproxy.h header.
2000-09-26 04:58:35 +00:00
Robert James Kaes
d0b36a6673
Need to do a check for the <stdint.h> header since it's not a standard
...
header available on all systems.
2000-09-14 16:41:20 +00:00
Robert James Kaes
9f080da488
Fixed the change user/group ability.
...
Log when tinyproxy is using default values rather than specific ones.
Cleaned up the command line arguments since tinyproxy now uses a
configuration file.
Removed the USR1 signal and added the thread creation code.
2000-09-12 00:03:53 +00:00
Robert James Kaes
0edeabbd63
Removed the allowedhdr_s structure since it is now accessed through
...
anonymous.*
2000-03-31 20:08:19 +00:00
Robert James Kaes
10317d6701
Included the changes needed to re-add the upstream proxy option.
2000-03-11 20:37:44 +00:00
Steven Young
37e63909c0
This commit was generated by cvs2svn to compensate for changes in r2,
...
which included commits to RCS files with non-trunk default branches.
2000-02-16 17:32:49 +00:00