From afac6cca62fd37496b45e002c6c18da532e001ef Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 25 May 2016 10:50:55 +0000 Subject: [PATCH] Let dynamic filters and taggers support a $listen-address variable ... which contains the address the request came in on. For external filters the variable is called $PRIVOXY_LISTEN_ADDRESS. Original patch contributed by pursievro. --- default.filter | 5 +++-- doc/source/user-manual.sgml | 17 ++++++++++------- filters.c | 4 +++- jbsockets.c | 22 +++++++++++++++++++++- jcc.c | 10 +++++++++- loaders.c | 3 ++- project.h | 6 +++++- user.filter | 5 +++-- 8 files changed, 56 insertions(+), 16 deletions(-) diff --git a/default.filter b/default.filter index 46408c08..9815feac 100644 --- a/default.filter +++ b/default.filter @@ -2,7 +2,7 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.91 2014/06/20 09:46:13 fabiankeil Exp $ +# $Id: default.filter,v 1.92 2014/10/17 14:45:10 fabiankeil Exp $ # # Purpose : Rules to process the content of web pages # @@ -57,7 +57,8 @@ # quoting. # # 'D' (Dynamic) allows the use of variables. Supported variables are: -# $host, $origin (the IP address the request came from), $path and $url. +# $host, $listen-address, $origin (the IP address the request came +# from), $path and $url. # # Note that '$' is a bad choice as delimiter for dynamic filters as you # might end up with unintended variables if you use a variable name diff --git a/doc/source/user-manual.sgml b/doc/source/user-manual.sgml index 0a8588df..4151b425 100644 --- a/doc/source/user-manual.sgml +++ b/doc/source/user-manual.sgml @@ -36,7 +36,7 @@ This file belongs into ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/ - $Id: user-manual.sgml,v 2.210 2016/05/03 13:20:20 fabiankeil Exp $ + $Id: user-manual.sgml,v 2.211 2016/05/22 12:42:11 fabiankeil Exp $ Copyright (C) 2001-2016 Privoxy Developers https://www.privoxy.org/ See LICENSE. @@ -62,7 +62,7 @@ -$Id: user-manual.sgml,v 2.210 2016/05/03 13:20:20 fabiankeil Exp $ +$Id: user-manual.sgml,v 2.211 2016/05/22 12:42:11 fabiankeil Exp $