Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ceb6c7ebb | ||
|
|
a25e0a608e | ||
|
|
f58a34ed34 | ||
|
|
3138b239f6 | ||
|
|
cf2ecb83b8 | ||
|
|
14f83aec55 | ||
|
|
50058c1cab | ||
|
|
42ef3b86b6 | ||
|
|
6004eca8c6 | ||
|
|
0a1f83bbe5 | ||
|
|
82f7a5cba6 |
No files matched your search
@@ -1,3 +1,23 @@
|
||||
2002-05-08 Robert James Kaes <rjkaes@flarenet.com>
|
||||
|
||||
* configure.ac: The --with-config option now supports absolute
|
||||
paths. If an absolute path is given, the full directory path and
|
||||
file name are extracted into their appropriate parts.
|
||||
|
||||
2002-05-07 Robert James Kaes <rjkaes@flarenet.com>
|
||||
|
||||
* src/reqs.c (connect_to_tunnel): Removed request logging code in
|
||||
the tunnel method since it breaks the "tunnel" concept.
|
||||
|
||||
2002-05-02 Robert James Kaes <rjkaes@flarenet.com>
|
||||
|
||||
* configure.ac: Added code to figure out exactly where to install
|
||||
the configuration file.
|
||||
|
||||
* Makefile.am (install-data-local): Added a new install run to
|
||||
install the configuration file to the location specified in
|
||||
DEFAULT_CONF_FILE.
|
||||
|
||||
2002-04-28 Robert James Kaes <rjkaes@flarenet.com>
|
||||
|
||||
* src/reqs.c (process_client_headers):
|
||||
|
||||
+22
@@ -1,2 +1,24 @@
|
||||
EXTRA_DIST = TODO
|
||||
SUBDIRS = src doc
|
||||
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(DESTDIR)@TINYPROXY_CONFIG_DIR@
|
||||
$(INSTALL) -m 600 $(srcdir)/doc/tinyproxy.conf \
|
||||
$(DESTDIR)@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@-dist
|
||||
test ! -f $(DESTDIR)@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@ \
|
||||
&& $(INSTALL) -m 600 $(srcdir)/doc/tinyproxy.conf \
|
||||
$(DESTDIR)@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@
|
||||
@echo ""
|
||||
@echo "A configuration file has been copied to:"
|
||||
@echo ""
|
||||
@echo "@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@-dist"
|
||||
@echo ""
|
||||
@echo "You will need to rename this file to:"
|
||||
@echo ""
|
||||
@echo "@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@"
|
||||
@echo ""
|
||||
@echo "and modify the values to suit your local system."
|
||||
@echo ""
|
||||
@echo "All the configuration directives are commented in the file, so"
|
||||
@echo "you should not have any problems configuring your system."
|
||||
@echo ""
|
||||
@@ -1,22 +0,0 @@
|
||||
|
||||
NEWS
|
||||
====
|
||||
|
||||
It's been a few months since I release the 1.4.3 version. That's
|
||||
a bit longer than I want to take with this release (which I originally
|
||||
thought would be released a week after the 1.4.3 release in November
|
||||
21, 2001 :), but my real life kind of intruded on the project.
|
||||
Anyway, this release doesn't add any new features or functions; it's
|
||||
basically a bug fix and standard compliance release. A few
|
||||
portability bugs have been fixed, and I've rewritten a few request
|
||||
processing functions to make them more compliant with the HTTP
|
||||
standard.
|
||||
|
||||
Now, I've tested the request related code personally with all the
|
||||
configurations I can think of, but I can't claim that it will work
|
||||
perfectly with _every_ configuration and _every_ site. So, please
|
||||
give these pre-releases a thorough testing and let me know if there
|
||||
any problems you've noticed.
|
||||
|
||||
Robert James Kaes
|
||||
April 8, 2002
|
||||
+38
-26
@@ -1,4 +1,4 @@
|
||||
dnl $Id: configure.ac,v 2.23 2002-04-29 16:32:20 rjkaes Exp $
|
||||
dnl $Id: configure.ac,v 2.29 2002-05-08 19:57:02 rjkaes Exp $
|
||||
|
||||
dnl Devlopers, please strive to achieve this order:
|
||||
dnl
|
||||
@@ -14,7 +14,7 @@ dnl 8. System services
|
||||
dnl
|
||||
dnl Read the Autoconf manual for details.
|
||||
|
||||
AC_INIT([tinyproxy], [1.5.0rc7], [rjkaes@users.sourceforge.net])
|
||||
AC_INIT([tinyproxy], [1.5.0rc10], [rjkaes@users.sourceforge.net])
|
||||
AC_CONFIG_SRCDIR([src/tinyproxy.c])
|
||||
AC_PREREQ(2.52)
|
||||
|
||||
@@ -27,6 +27,9 @@ AC_DEFINE_UNQUOTED(TARGET_SYSTEM, ["$target"])
|
||||
AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
dnl Set the default CFLAGS
|
||||
CFLAGS="-D_REENTRANT"
|
||||
|
||||
dnl Check if we're compiling on a weird platform :)
|
||||
AC_AIX
|
||||
AC_ISC_POSIX
|
||||
@@ -37,30 +40,44 @@ dnl Command line options
|
||||
dnl
|
||||
|
||||
dnl Set the URL name for find the statistics of tinyproxy
|
||||
AH_VERBATIM([DEFAULT_STATHOST],
|
||||
[/*
|
||||
* This controls remote proxy stats deplay. For example, the default
|
||||
* DEFAULT_STATHOST of "tinyproxy.stats" means that where you access
|
||||
* "http://tinyproxy.stats/" you will be shown the proxy stats. Use "" to
|
||||
* disable.
|
||||
*/
|
||||
#ifndef DEFAULT_STATHOST
|
||||
# define DEFAULT_STATHOST "tinyproxy.stats"
|
||||
#endif])
|
||||
AH_TEMPLATE([DEFAULT_STATHOST],
|
||||
[This controls remote proxy stats display.])
|
||||
AC_ARG_WITH(stathost,
|
||||
[AC_HELP_STRING([--with-stathost=HOST], [Default status host])],
|
||||
[AC_DEFINE_UNQUOTED(DEFAULT_STATHOST, ["$withval"])])
|
||||
[AC_DEFINE_UNQUOTED(DEFAULT_STATHOST, "$withval")],
|
||||
[AC_DEFINE_UNQUOTED(DEFAULT_STATHOST, "tinyproxy.stats")])
|
||||
|
||||
dnl Set the default configuration file location
|
||||
AH_VERBATIM([DEFAULT_CONF_FILE],
|
||||
[/* This is the default location of the configuation file. */
|
||||
#ifndef DEFAULT_CONF_FILE
|
||||
# define DEFAULT_CONF_FILE "/etc/tinyproxy/tinyproxy.conf"
|
||||
#endif])
|
||||
test "$prefix" = "NONE" && prefix=/usr/local
|
||||
|
||||
AH_TEMPLATE([DEFAULT_CONF_FILE],
|
||||
[This is the default file name for the configuration file.])
|
||||
AC_ARG_WITH(config,
|
||||
[AC_HELP_STRING([--with-config=FILE],
|
||||
[Set the default location of the config file])],
|
||||
[AC_DEFINE_UNQUOTED(DEFAULT_CONF_FILE, ["$withval"])])
|
||||
[tp_config_file="$withval"],
|
||||
[tp_config_file="tinyproxy.conf"])
|
||||
|
||||
# If the first character is a slash, it's an absolute path
|
||||
if [[ `echo $tp_config_file | cut -c1` = "/" ]]; then
|
||||
TINYPROXY_CONFIG_DIR=`echo "$tp_config_file" | sed 's/^\(.*\)\/[[^\/]]*$/\1/'`
|
||||
TINYPROXY_CONFIG_FILE=`echo "$tp_config_file" | sed 's/^.*\/\([[^\/]]*\)$/\1/'`
|
||||
else
|
||||
# If sysconfdir is /usr/etc, change it to /etc (since /usr/etc doesn't exist)
|
||||
if [[ "/usr/etc" = `eval echo $sysconfdir` -a "/usr" = "$prefix" ]]; then
|
||||
TINYPROXY_CONFIG_DIR="/etc/tinyproxy"
|
||||
else
|
||||
TINYPROXY_CONFIG_DIR=`eval echo $sysconfdir/tinyproxy`
|
||||
fi
|
||||
TINYPROXY_CONFIG_FILE="$tp_config_file"
|
||||
fi
|
||||
|
||||
AC_SUBST(TINYPROXY_CONFIG_DIR)
|
||||
AC_SUBST(TINYPROXY_CONFIG_FILE)
|
||||
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_CONF_FILE, "$TINYPROXY_CONFIG_DIR/$TINYPROXY_CONFIG_FILE")
|
||||
|
||||
AC_MSG_NOTICE([Default config location and file is: $TINYPROXY_CONFIG_DIR/$TINYPROXY_CONFIG_FILE])
|
||||
|
||||
dnl Add compiler-specific optimization flags
|
||||
AC_ARG_ENABLE(debug,
|
||||
@@ -142,8 +159,6 @@ dnl
|
||||
dnl Checks for programs
|
||||
dnl
|
||||
|
||||
dnl Save $CFLAGS since AC_PROG_CC likes to insert "-g -O2"
|
||||
dnl if $CFLAGS is blank
|
||||
cflags_save="$CFLAGS"
|
||||
|
||||
AC_PROG_AWK
|
||||
@@ -155,9 +170,7 @@ AC_PROG_LN_S
|
||||
AM_PROG_LEX
|
||||
AC_PROG_YACC
|
||||
|
||||
dnl Restore the CFLAGS and add the -D_REENTRANT define since threading is
|
||||
dnl in use.
|
||||
CFLAGS="$cflags_save -D_REENTRANT"
|
||||
CFLAGS="$cflags_save"
|
||||
|
||||
dnl Make sure YACC is actually bison
|
||||
if test x"$YACC" != x"bison -y"; then
|
||||
@@ -263,7 +276,6 @@ if test x"$profiling_enabled" = x"yes" ; then
|
||||
fi
|
||||
|
||||
dnl Enable the debugging flags (by checking for the GCC compiler)
|
||||
CFLAGS="-O2 $CFLAGS"
|
||||
if test x"$debug_enabled" = x"yes" ; then
|
||||
dnl Add the warnings if we have the GCC compiler
|
||||
if test x"$GCC" = x"yes" ; then
|
||||
@@ -278,7 +290,7 @@ if test x"$debug_enabled" = x"yes" ; then
|
||||
YFLAGS="-v -d"
|
||||
else
|
||||
dnl No debugging information, include the optimizations
|
||||
CFLAGS="-DNDEBUG $CFLAGS"
|
||||
CFLAGS="-O2 -DNDEBUG $CFLAGS"
|
||||
YFLAGS="-d"
|
||||
fi
|
||||
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
# $Id: Makefile.am,v 1.11 2002-04-10 21:51:01 rjkaes Exp $
|
||||
# $Id: Makefile.am,v 1.12 2002-05-02 17:34:58 rjkaes Exp $
|
||||
#
|
||||
#
|
||||
#
|
||||
@@ -18,7 +18,7 @@
|
||||
YFLAGS = @YFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
|
||||
bin_PROGRAMS = tinyproxy
|
||||
sbin_PROGRAMS = tinyproxy
|
||||
|
||||
tinyproxy_SOURCES = \
|
||||
acl.c acl.h \
|
||||
|
||||
+16
-1
@@ -1,4 +1,4 @@
|
||||
/* $Id: reqs.c,v 1.70 2002-04-28 20:03:18 rjkaes Exp $
|
||||
/* $Id: reqs.c,v 1.71 2002-05-08 03:29:23 rjkaes Exp $
|
||||
*
|
||||
* This is where all the work in tinyproxy is actually done. Incoming
|
||||
* connections have a new thread created for them. The thread then
|
||||
@@ -1107,6 +1107,19 @@ connect_to_upstream(struct conn_s *connptr, struct request_s *request)
|
||||
static int
|
||||
connect_to_tunnel(struct conn_s *connptr)
|
||||
{
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* NOTE: This must be fixed
|
||||
*
|
||||
* Needed to remove this for right now since it breaks the semantics
|
||||
* of the "tunnel" concept since the information from the remote host
|
||||
* wasn't being sent until _after_ data was sent by the client. This
|
||||
* is not correct since we should be sending the data regardless of
|
||||
* who sent it first.
|
||||
*
|
||||
* I'll have to look into this for the next release.
|
||||
*/
|
||||
char *request_buf;
|
||||
ssize_t len;
|
||||
int pos;
|
||||
@@ -1122,6 +1135,8 @@ connect_to_tunnel(struct conn_s *connptr)
|
||||
|
||||
safefree(request_buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
log_message(LOG_INFO, "Redirecting to %s:%d",
|
||||
config.tunnel_name, config.tunnel_port);
|
||||
|
||||
|
||||
Reference in new issue
Block a user