summaryrefslogtreecommitdiffhomepage
path: root/src/grammar.y
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-05-23 18:24:02 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-05-23 18:24:02 +0000
commit1f9085cef2c9fb9642c3ffad331a9edc423abf76 (patch)
tree4cd980e7014c8df908b507f78c27d3432b9a113d /src/grammar.y
parent09b1b9b9253cd01f3484ba4a78fd260220313ae1 (diff)
Added the "DNSserverLocation" and "DNSserverSocket" directives for use
with the "dnsserver" resolver.
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 15f3252..dc45022 100644
--- a/src/grammar.y
+++ b/src/grammar.y
@@ -1,4 +1,4 @@
-/* $Id: grammar.y,v 1.10 2002-04-24 16:45:45 rjkaes Exp $
+/* $Id: grammar.y,v 1.11 2002-05-23 18:24:02 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
@@ -49,6 +49,7 @@ int yylex(void);
%token KW_TUNNEL KW_UPSTREAM
%token KW_CONNECTPORT KW_BIND
%token KW_ALLOW KW_DENY
+%token KW_DNSSERVER_LOCATION KW_DNSSERVER_SOCKET
/* yes/no switches */
%token KW_YES KW_NO
@@ -157,6 +158,8 @@ statement
log_message(LOG_INFO, "Binding outgoing connections to %s", $2);
config.bind_address = $2;
}
+ | KW_DNSSERVER_LOCATION string { config.dnsserver_location = $2; }
+ | KW_DNSSERVER_SOCKET string { config.dnsserver_socket = $2; }
;
loglevels