summaryrefslogtreecommitdiff
path: root/src/grammar.y
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2003-03-13 21:42:46 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2003-03-13 21:42:46 +0000
commit75dd0b22c4da89e78c1589b0d4a266e97da32589 (patch)
treeea0d722d3c78ae3feb4326a6b72a6893ddc567e9 /src/grammar.y
parentfa1480a3e11f4c99adef84d4f571bc36208001e4 (diff)
downloadtinyproxy-75dd0b22c4da89e78c1589b0d4a266e97da32589.tar.gz
tinyproxy-75dd0b22c4da89e78c1589b0d4a266e97da32589.zip
Allow the URL for the statistic page to be controlled from the
configuration file, rather than being hard-coded in the program. [John M Wright]
Diffstat (limited to 'src/grammar.y')
-rw-r--r--src/grammar.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/grammar.y b/src/grammar.y
index 851f471..7be9368 100644
--- a/src/grammar.y
+++ b/src/grammar.y
@@ -1,4 +1,4 @@
-/* $Id: grammar.y,v 1.19 2003-03-13 21:28:37 rjkaes Exp $
+/* $Id: grammar.y,v 1.20 2003-03-13 21:42:46 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
@@ -52,6 +52,7 @@ int yylex(void);
%token KW_FILTER_CASESENSITIVE
%token KW_UPSTREAM
%token KW_CONNECTPORT KW_BIND KW_HTTP_VIA
+%token KW_STATHOST
%token KW_ALLOW KW_DENY
%token KW_ERRORPAGE KW_DEFAULT_ERRORPAGE
%token KW_STATPAGE
@@ -203,6 +204,11 @@ statement
config.via_http_header = FALSE;
}
}
+ | KW_STATHOST string
+ {
+ log_message(LOG_INFO, "Stathost is set to \"%s\"", $2);
+ config.stathost = $2;
+ }
;
loglevels