Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
code to make sure the supplied arguments are valid.
|
|
Once is enough. [Detected by John M Wright]
|
|
sure the function would compile cleanly regardless of how the
directive was set.
|
|
|
|
expression support was included. It will be there always.
|
|
sure the function's symbol name is stored, even if upstream was not
compiled it. This should keep some compilers from reporting errors.
|
|
Code changes from James E. Flemer.
|
|
comes from the FreeBSD port through James E. Flemer.
|
|
username/password part from the host URI.
(extract_http_url), (extract_ssl_url): Use the new
strip_username_password function to remove any non-host information
from the URI.
|
|
The type was just replaced by "unsigned int" types.
|
|
since it's skipped by the caller before the URL is passed to this
function.
(process_request): Include code to handle proxy FTP requests as
well. This also lead to a bit of a cleanup in the calling conventions
of extract_http_url function. tinyproxy can handle both types of
resources by skipping the leading :// part.
|
|
controlled by the ViaHeader configure directive.
|
|
child is being closed.
|
|
not report this to the user and close the program.
|
|
|
|
error, a negative "error code" is returned to the program. The
various callers then need to decide what to do.
(pidfile_create): Returns an error status depending on whether the PID
file was created successfully.
|
|
the data has been sent.
|
|
are closed.
|
|
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.
|
|
remaining data to the server when the connections are being closed.
It was a one line fix.
|
|
to when the log file is created. Also, the log file is created with
the proper owner permissions.
|
|
|
|
change was required to actually display all the logs in the correct
order. Also, all log lines are stored internally while tinyproxy is
starting. At the appropriate point all the logs are written to the
log file.
|
|
|
|
descriptors since we need them to display error messages.
|
|
the child request.
(child_main_loop): Added a call to truncate_log_file() when the log
file is to be rotated.
|
|
being initially created with the initial user's permissions, which is obviously a problem if tinyproxy is not running as the initial user. This is now fixed by delaying the creation of the log file until _after_ tinyproxy has been switched to the user it will run as. Confused yet?
|
|
(pidfile_create): Changed all the error logging to write to standard error and then exit the program. This will prevent segmentation fault problems from occurring because the log file could not be created properly.
|
|
".XXXXXX" string already. This saves one system call when creating a temporary file name.
|
|
that the children can be properly destroyed.
|
|
closed whenever a message is submitted. This allows the log file to be moved away, for example a rotating the log, and yet still have the information written to the correct file name by all the children.
|
|
(main): Removed the log file creation code because it has been moved into the log.c file. Also, removed the explicit fclose() for the log file since it will be close when the program has exited.
|
|
code is activated whenever the SIGHUP signal is received.
|
|
renamed the "log_rotation_request" boolean to "received_sighup".
|
|
where the _user_ needs to move the log file themselves, and tinyproxy will continue to write to the original name. This allows more flexibility for users to determine their own log rotation scheme.
|
|
|
|
filter_set_default_policy() function is used to select the default policy (either default allow or default deny) for the filtering code. Also, the two filtering functions now support the policy code.
|
|
the default policy of the filter is to allow everything which isn't denied, or to deny everything which isn't allowed.
|
|
tinyproxy. The additional code is in process_request(), but Petr also had to change around some of the other functions (like process_client_headers and handle_connection.) Note: Right now this code has not been tested, but it is believed to work. To enable run ./configure --enable-transparent-proxy
|
|
name. The "host" variable will _always_ be just the name by the time filter_domain() is called.
|
|
support has been compiled in.
|
|
ignored if "transparent proxy" has been compiled into tinyproxy.
|
|
Plus, there was a bug with how I was calling the hashmap_is_end() function. This has now been fixed.
|
|
connection. This is needed for debugging using "gdb".
|
|
now a static variable.
|
|
and into it's own function because it now does two (2) tests. If the ACL string is a complete host name, in other words doesn't start with a period, than a reverse DNS look-up is done on the host name and compared to the IP address of the client; otherwise, the normal text string comparison is done.
(check_acl): Moved the string text out of the function and removed some logging code by jumping to the "Deny" code at the end of the function.
|
|
|
|
needed since I use this function for both the log file and the pid file, and they behave differently when tinyproxy is started.
(pidfile_create): Call create_file_safely() with a TRUE "truncate_file" flag so that the file is emptied whenever the pid file is needed.
|
|
tinyproxy without losing the log file.
|