summaryrefslogtreecommitdiffhomepage
path: root/src/grammar.y
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-05-27 01:52:44 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-05-27 01:52:44 +0000
commit026c7d9a3dc82556bbb40a37598e4032b046eeb9 (patch)
treef876ba46e9b4848a65812b5c53364cd9b216af85 /src/grammar.y
parent4ba42369b93673921d9976bee4c22dadccb1421b (diff)
Added support for the "FilterURLs" and "FilterExtended" directives.
These directives were submitted by James Flemer for use with the new filtering code.
Diffstat (limited to 'src/grammar.y')
-rw-r--r--src/grammar.y21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/grammar.y b/src/grammar.y
index da893a5..91a950f 100644
--- a/src/grammar.y
+++ b/src/grammar.y
@@ -1,4 +1,4 @@
-/* $Id: grammar.y,v 1.12 2002-05-26 18:54:27 rjkaes Exp $
+/* $Id: grammar.y,v 1.13 2002-05-27 01:52:44 rjkaes Exp $
*
* This is the grammar for tinyproxy's configuration file. It needs to be
* in sync with scanner.l. If you know more about yacc and lex than I do
@@ -45,7 +45,8 @@ int yylex(void);
%token KW_MAXREQUESTSPERCHILD
%token KW_TIMEOUT
%token KW_USER KW_GROUP
-%token KW_ANONYMOUS KW_FILTER KW_XTINYPROXY
+%token KW_ANONYMOUS KW_XTINYPROXY
+%token KW_FILTER KW_FILTERURLS KW_FILTEREXTENDED
%token KW_TUNNEL KW_UPSTREAM
%token KW_CONNECTPORT KW_BIND
%token KW_ALLOW KW_DENY
@@ -117,6 +118,22 @@ statement
log_message(LOG_WARNING, "Filter support was not compiled in.");
#endif
}
+ | KW_FILTERURLS yesno
+ {
+#ifdef FILTER_ENABLE
+ config.filter_url = $2;
+#else
+ log_message(LOG_WARNING, "Filter support wss not compiled in.");
+#endif
+ }
+ | KW_FILTEREXTENDED yesno
+ {
+#ifdef FILTER_ENABLE
+ config.filter_extended = $2;
+#else
+ log_message(LOG_WARNING, "Filter support was not compiled in.");
+#endif
+ }
| KW_XTINYPROXY network_address
{
#ifdef XTINYPROXY_ENABLE