From a72fc7ad09955713f20f5f2bd35575fe06474a2c Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Thu, 6 Jun 2002 20:26:13 +0000 Subject: Added a warning message to the Bind directive stating that it will be ignored if "transparent proxy" has been compiled into tinyproxy. --- src/grammar.y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/grammar.y b/src/grammar.y index 91a950f..a9953b4 100644 --- a/src/grammar.y +++ b/src/grammar.y @@ -1,4 +1,4 @@ -/* $Id: grammar.y,v 1.13 2002-05-27 01:52:44 rjkaes Exp $ +/* $Id: grammar.y,v 1.14 2002-06-06 20:26:13 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 @@ -171,8 +171,12 @@ statement | KW_CONNECTPORT NUMBER { add_connect_port_allowed($2); } | KW_BIND NUMERIC_ADDRESS { +#ifndef TRANSPARENT_PROXY log_message(LOG_INFO, "Binding outgoing connections to %s", $2); config.bind_address = $2; +#else + log_message(LOG_WARNING, "The 'Bind' directive can not be used with transparent proxy support. Ignoring the directive."); +#endif } ; -- cgit v1.2.3