summaryrefslogtreecommitdiffhomepage
path: root/src/grammar.y
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-12 16:59:37 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-12 16:59:37 +0000
commit660e4d5687a92fd44ce5c23a4e3d68a786867551 (patch)
tree35ea8590ee94aff847ed1be782bca92d0d3c9adc /src/grammar.y
parenteb1230e841f93f7a5fcf4103045aef4a76164b81 (diff)
Added the support code to process a ConnectPort configuration directive.
Diffstat (limited to 'src/grammar.y')
-rw-r--r--src/grammar.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/grammar.y b/src/grammar.y
index eabb5e5..5cf245c 100644
--- a/src/grammar.y
+++ b/src/grammar.y
@@ -1,4 +1,4 @@
-/* $Id: grammar.y,v 1.7 2002-04-02 17:17:30 rjkaes Exp $
+/* $Id: grammar.y,v 1.8 2002-04-12 16:59:37 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
@@ -24,6 +24,7 @@
#include "acl.h"
#include "anonymous.h"
#include "log.h"
+#include "reqs.h"
#include "thread.h"
void yyerror(char *s);
@@ -46,6 +47,7 @@ int yylex(void);
%token KW_USER KW_GROUP
%token KW_ANONYMOUS KW_FILTER KW_XTINYPROXY
%token KW_TUNNEL KW_UPSTREAM
+%token KW_CONNECTPORT
%token KW_ALLOW KW_DENY
/* yes/no switches */
@@ -145,6 +147,7 @@ statement
| KW_ALLOW network_address { insert_acl($2, ACL_ALLOW); }
| KW_DENY network_address { insert_acl($2, ACL_DENY); }
| KW_LOGLEVEL loglevels { set_log_level($2); }
+ | KW_CONNECTPORT NUMBER { add_connect_port_allowed($2); }
;
loglevels